aylien_news_api 4.1.1 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +100 -31
  3. data/docs/AggregatedSentiment.md +21 -0
  4. data/docs/DefaultApi.md +491 -7
  5. data/docs/DeprecatedEntities.md +19 -0
  6. data/docs/DeprecatedEntity.md +33 -0
  7. data/docs/DeprecatedEntitySurfaceForm.md +21 -0
  8. data/docs/DeprecatedRelatedStories.md +27 -0
  9. data/docs/DeprecatedStories.md +25 -0
  10. data/docs/DeprecatedStory.md +61 -0
  11. data/docs/Entity.md +16 -8
  12. data/docs/EntityInText.md +19 -0
  13. data/docs/EntityLinks.md +6 -2
  14. data/docs/EntityMention.md +19 -0
  15. data/docs/EntityMentionIndex.md +19 -0
  16. data/docs/EntitySentiment.md +19 -0
  17. data/docs/EntitySurfaceForm.md +21 -0
  18. data/docs/Logicals.md +21 -0
  19. data/docs/NestedEntity.md +33 -0
  20. data/docs/Parameter.md +127 -0
  21. data/docs/Query.md +31 -0
  22. data/docs/Story.md +4 -2
  23. data/docs/TimeSeries.md +3 -1
  24. data/docs/Trend.md +3 -1
  25. data/lib/aylien_news_api.rb +16 -1
  26. data/lib/aylien_news_api/api/default_api.rb +728 -11
  27. data/lib/aylien_news_api/models/aggregated_sentiment.rb +228 -0
  28. data/lib/aylien_news_api/models/deprecated_entities.rb +221 -0
  29. data/lib/aylien_news_api/models/deprecated_entity.rb +314 -0
  30. data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +244 -0
  31. data/lib/aylien_news_api/models/deprecated_related_stories.rb +260 -0
  32. data/lib/aylien_news_api/models/deprecated_stories.rb +252 -0
  33. data/lib/aylien_news_api/models/deprecated_story.rb +429 -0
  34. data/lib/aylien_news_api/models/entity.rb +96 -44
  35. data/lib/aylien_news_api/models/entity_in_text.rb +217 -0
  36. data/lib/aylien_news_api/models/entity_links.rb +25 -5
  37. data/lib/aylien_news_api/models/entity_mention.rb +215 -0
  38. data/lib/aylien_news_api/models/entity_mention_index.rb +265 -0
  39. data/lib/aylien_news_api/models/entity_sentiment.rb +240 -0
  40. data/lib/aylien_news_api/models/entity_surface_form.rb +244 -0
  41. data/lib/aylien_news_api/models/logicals.rb +230 -0
  42. data/lib/aylien_news_api/models/nested_entity.rb +278 -0
  43. data/lib/aylien_news_api/models/parameter.rb +701 -0
  44. data/lib/aylien_news_api/models/query.rb +271 -0
  45. data/lib/aylien_news_api/models/related_stories.rb +1 -0
  46. data/lib/aylien_news_api/models/stories.rb +1 -0
  47. data/lib/aylien_news_api/models/story.rb +19 -6
  48. data/lib/aylien_news_api/models/time_series.rb +13 -4
  49. data/lib/aylien_news_api/models/trend.rb +13 -4
  50. data/lib/aylien_news_api/version.rb +1 -1
  51. data/spec/api/default_api_spec.rb +226 -3
  52. data/spec/models/aggregated_sentiment_spec.rb +53 -0
  53. data/spec/models/deprecated_entities_spec.rb +47 -0
  54. data/spec/models/deprecated_entity_spec.rb +89 -0
  55. data/spec/models/deprecated_entity_surface_form_spec.rb +53 -0
  56. data/spec/models/deprecated_related_stories_spec.rb +71 -0
  57. data/spec/models/deprecated_stories_spec.rb +65 -0
  58. data/spec/models/deprecated_story_spec.rb +173 -0
  59. data/spec/models/entity_in_text_spec.rb +47 -0
  60. data/spec/models/entity_links_spec.rb +12 -0
  61. data/spec/models/entity_mention_index_spec.rb +47 -0
  62. data/spec/models/entity_mention_spec.rb +47 -0
  63. data/spec/models/entity_sentiment_spec.rb +47 -0
  64. data/spec/models/entity_spec.rb +28 -4
  65. data/spec/models/entity_surface_form_spec.rb +53 -0
  66. data/spec/models/logicals_spec.rb +53 -0
  67. data/spec/models/nested_entity_spec.rb +89 -0
  68. data/spec/models/parameter_spec.rb +371 -0
  69. data/spec/models/query_spec.rb +83 -0
  70. data/spec/models/story_spec.rb +6 -0
  71. data/spec/models/time_series_spec.rb +6 -0
  72. data/spec/models/trend_spec.rb +6 -0
  73. metadata +66 -2
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::EntityInText
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'EntityInText' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::EntityInText.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of EntityInText' do
31
+ it 'should create an instance of EntityInText' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::EntityInText)
33
+ end
34
+ end
35
+ describe 'test attribute "sentiment"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "surface_forms"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -38,4 +38,16 @@ describe 'EntityLinks' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "wikipedia"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "wikidata"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
41
53
  end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::EntityMentionIndex
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'EntityMentionIndex' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::EntityMentionIndex.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of EntityMentionIndex' do
31
+ it 'should create an instance of EntityMentionIndex' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::EntityMentionIndex)
33
+ end
34
+ end
35
+ describe 'test attribute "start"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "_end"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::EntityMention
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'EntityMention' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::EntityMention.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of EntityMention' do
31
+ it 'should create an instance of EntityMention' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::EntityMention)
33
+ end
34
+ end
35
+ describe 'test attribute "index"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "sentiment"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::EntitySentiment
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'EntitySentiment' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::EntitySentiment.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of EntitySentiment' do
31
+ it 'should create an instance of EntitySentiment' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::EntitySentiment)
33
+ end
34
+ end
35
+ describe 'test attribute "polarity"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "confidence"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -32,7 +32,7 @@ describe 'Entity' do
32
32
  expect(@instance).to be_instance_of(AylienNewsApi::Entity)
33
33
  end
34
34
  end
35
- describe 'test attribute "indices"' do
35
+ describe 'test attribute "id"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
@@ -44,19 +44,43 @@ describe 'Entity' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "score"' do
47
+ describe 'test attribute "stock_tickers"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "text"' do
53
+ describe 'test attribute "types"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "types"' do
59
+ describe 'test attribute "overall_sentiment"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "overall_prominence"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "overall_frequency"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "body"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "title"' do
60
84
  it 'should work' do
61
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
86
  end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::EntitySurfaceForm
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'EntitySurfaceForm' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::EntitySurfaceForm.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of EntitySurfaceForm' do
31
+ it 'should create an instance of EntitySurfaceForm' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::EntitySurfaceForm)
33
+ end
34
+ end
35
+ describe 'test attribute "text"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "frequency"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "mentions"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::Logicals
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Logicals' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::Logicals.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Logicals' do
31
+ it 'should create an instance of Logicals' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::Logicals)
33
+ end
34
+ end
35
+ describe 'test attribute "_and"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "_or"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "_not"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -0,0 +1,89 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::NestedEntity
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'NestedEntity' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::NestedEntity.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of NestedEntity' do
31
+ it 'should create an instance of NestedEntity' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::NestedEntity)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "surface_forms_text"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "sentiment"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "element"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "links_wikipedia"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "links_wikidata"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "stock_ticker"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "type"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ end