aylien_news_api 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/aylien_news_api.gemspec +1 -2
- data/docs/Category.md +3 -1
- data/docs/CategoryTaxonomy.md +16 -0
- data/docs/DefaultApi.md +105 -51
- data/docs/Histograms.md +5 -1
- data/docs/Media.md +2 -2
- data/docs/MediaFormat.md +16 -0
- data/docs/MediaType.md +16 -0
- data/docs/Scope.md +1 -1
- data/docs/ScopeLevel.md +16 -0
- data/docs/Sentiment.md +1 -1
- data/docs/SentimentPolarity.md +16 -0
- data/docs/Stories.md +5 -1
- data/docs/StoryLinks.md +3 -3
- data/docs/StoryTranslation.md +19 -0
- data/docs/StoryTranslations.md +1 -1
- data/docs/Trends.md +5 -1
- data/lib/aylien_news_api.rb +7 -3
- data/lib/aylien_news_api/api/default_api.rb +265 -159
- data/lib/aylien_news_api/api_client.rb +8 -6
- data/lib/aylien_news_api/api_error.rb +1 -1
- data/lib/aylien_news_api/configuration.rb +2 -2
- data/lib/aylien_news_api/models/author.rb +12 -2
- data/lib/aylien_news_api/models/autocomplete.rb +12 -2
- data/lib/aylien_news_api/models/autocompletes.rb +12 -2
- data/lib/aylien_news_api/models/category.rb +24 -39
- data/lib/aylien_news_api/models/category_links.rb +12 -2
- data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
- data/lib/aylien_news_api/models/cluster.rb +12 -2
- data/lib/aylien_news_api/models/clusters.rb +12 -2
- data/lib/aylien_news_api/models/coverages.rb +12 -2
- data/lib/aylien_news_api/models/entities.rb +12 -2
- data/lib/aylien_news_api/models/entity.rb +12 -2
- data/lib/aylien_news_api/models/entity_links.rb +12 -2
- data/lib/aylien_news_api/models/error.rb +12 -2
- data/lib/aylien_news_api/models/error_links.rb +12 -2
- data/lib/aylien_news_api/models/errors.rb +12 -2
- data/lib/aylien_news_api/models/histogram_interval.rb +12 -2
- data/lib/aylien_news_api/models/histograms.rb +36 -6
- data/lib/aylien_news_api/models/location.rb +12 -2
- data/lib/aylien_news_api/models/media.rb +14 -52
- data/lib/aylien_news_api/models/media_format.rb +44 -0
- data/lib/aylien_news_api/models/media_type.rb +36 -0
- data/lib/aylien_news_api/models/rank.rb +12 -2
- data/lib/aylien_news_api/models/rankings.rb +12 -2
- data/lib/aylien_news_api/models/related_stories.rb +12 -2
- data/lib/aylien_news_api/models/representative_story.rb +12 -2
- data/lib/aylien_news_api/models/scope.rb +13 -38
- data/lib/aylien_news_api/models/scope_level.rb +37 -0
- data/lib/aylien_news_api/models/sentiment.rb +13 -38
- data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
- data/lib/aylien_news_api/models/sentiments.rb +12 -2
- data/lib/aylien_news_api/models/share_count.rb +12 -2
- data/lib/aylien_news_api/models/share_counts.rb +12 -2
- data/lib/aylien_news_api/models/source.rb +12 -2
- data/lib/aylien_news_api/models/stories.rb +36 -6
- data/lib/aylien_news_api/models/story.rb +12 -2
- data/lib/aylien_news_api/models/story_cluster.rb +12 -2
- data/lib/aylien_news_api/models/story_links.rb +26 -16
- data/lib/aylien_news_api/models/story_translation.rb +217 -0
- data/lib/aylien_news_api/models/story_translations.rb +13 -3
- data/lib/aylien_news_api/models/story_translations_en.rb +12 -2
- data/lib/aylien_news_api/models/summary.rb +12 -2
- data/lib/aylien_news_api/models/time_series.rb +12 -2
- data/lib/aylien_news_api/models/time_series_list.rb +12 -2
- data/lib/aylien_news_api/models/trend.rb +12 -2
- data/lib/aylien_news_api/models/trends.rb +36 -6
- data/lib/aylien_news_api/version.rb +2 -2
- data/spec/api/default_api_spec.rb +54 -28
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/author_spec.rb +2 -2
- data/spec/models/autocomplete_spec.rb +2 -2
- data/spec/models/autocompletes_spec.rb +2 -2
- data/spec/models/category_links_spec.rb +2 -2
- data/spec/models/category_spec.rb +8 -6
- data/spec/models/category_taxonomy_spec.rb +35 -0
- data/spec/models/cluster_spec.rb +2 -2
- data/spec/models/clusters_spec.rb +2 -2
- data/spec/models/coverages_spec.rb +2 -2
- data/spec/models/entities_spec.rb +2 -2
- data/spec/models/entity_links_spec.rb +2 -2
- data/spec/models/entity_spec.rb +2 -2
- data/spec/models/error_links_spec.rb +2 -2
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/errors_spec.rb +2 -2
- data/spec/models/histogram_interval_spec.rb +2 -2
- data/spec/models/histograms_spec.rb +14 -2
- data/spec/models/location_spec.rb +2 -2
- data/spec/models/media_format_spec.rb +35 -0
- data/spec/models/media_spec.rb +2 -10
- data/spec/models/media_type_spec.rb +35 -0
- data/spec/models/rank_spec.rb +2 -2
- data/spec/models/rankings_spec.rb +2 -2
- data/spec/models/related_stories_spec.rb +2 -2
- data/spec/models/representative_story_spec.rb +2 -2
- data/spec/models/scope_level_spec.rb +35 -0
- data/spec/models/scope_spec.rb +2 -6
- data/spec/models/sentiment_polarity_spec.rb +35 -0
- data/spec/models/sentiment_spec.rb +2 -6
- data/spec/models/sentiments_spec.rb +2 -2
- data/spec/models/share_count_spec.rb +2 -2
- data/spec/models/share_counts_spec.rb +2 -2
- data/spec/models/source_spec.rb +2 -2
- data/spec/models/stories_spec.rb +14 -2
- data/spec/models/story_cluster_spec.rb +2 -2
- data/spec/models/story_links_spec.rb +5 -5
- data/spec/models/story_spec.rb +2 -2
- data/spec/models/story_translation_spec.rb +47 -0
- data/spec/models/story_translations_en_spec.rb +2 -2
- data/spec/models/story_translations_spec.rb +2 -2
- data/spec/models/summary_spec.rb +2 -2
- data/spec/models/time_series_list_spec.rb +2 -2
- data/spec/models/time_series_spec.rb +2 -2
- data/spec/models/trend_spec.rb +2 -2
- data/spec/models/trends_spec.rb +14 -2
- data/spec/spec_helper.rb +2 -2
- metadata +27 -23
@@ -0,0 +1,37 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module AylienNewsApi
|
16
|
+
class SentimentPolarity
|
17
|
+
POSITIVE = "positive".freeze
|
18
|
+
NEUTRAL = "neutral".freeze
|
19
|
+
NEGATIVE = "negative".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = SentimentPolarity.constants.select { |c| SentimentPolarity::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #SentimentPolarity" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,6 +34,12 @@ module AylienNewsApi
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
37
43
|
# Initializes the object
|
38
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
39
45
|
def initialize(attributes = {})
|
@@ -178,7 +184,11 @@ module AylienNewsApi
|
|
178
184
|
hash = {}
|
179
185
|
self.class.attribute_map.each_pair do |attr, param|
|
180
186
|
value = self.send(attr)
|
181
|
-
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
182
192
|
hash[param] = _to_hash(value)
|
183
193
|
end
|
184
194
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,6 +36,12 @@ module AylienNewsApi
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
39
45
|
# Initializes the object
|
40
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
47
|
def initialize(attributes = {})
|
@@ -180,7 +186,11 @@ module AylienNewsApi
|
|
180
186
|
hash = {}
|
181
187
|
self.class.attribute_map.each_pair do |attr, param|
|
182
188
|
value = self.send(attr)
|
183
|
-
|
189
|
+
if value.nil?
|
190
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
191
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
192
|
+
end
|
193
|
+
|
184
194
|
hash[param] = _to_hash(value)
|
185
195
|
end
|
186
196
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -46,6 +46,12 @@ module AylienNewsApi
|
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
49
55
|
# Initializes the object
|
50
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
57
|
def initialize(attributes = {})
|
@@ -208,7 +214,11 @@ module AylienNewsApi
|
|
208
214
|
hash = {}
|
209
215
|
self.class.attribute_map.each_pair do |attr, param|
|
210
216
|
value = self.send(attr)
|
211
|
-
|
217
|
+
if value.nil?
|
218
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
220
|
+
end
|
221
|
+
|
212
222
|
hash[param] = _to_hash(value)
|
213
223
|
end
|
214
224
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,6 +80,12 @@ module AylienNewsApi
|
|
80
80
|
}
|
81
81
|
end
|
82
82
|
|
83
|
+
# List of attributes with nullable: true
|
84
|
+
def self.openapi_nullable
|
85
|
+
Set.new([
|
86
|
+
])
|
87
|
+
end
|
88
|
+
|
83
89
|
# Initializes the object
|
84
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
85
91
|
def initialize(attributes = {})
|
@@ -273,7 +279,11 @@ module AylienNewsApi
|
|
273
279
|
hash = {}
|
274
280
|
self.class.attribute_map.each_pair do |attr, param|
|
275
281
|
value = self.send(attr)
|
276
|
-
|
282
|
+
if value.nil?
|
283
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
284
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
285
|
+
end
|
286
|
+
|
277
287
|
hash[param] = _to_hash(value)
|
278
288
|
end
|
279
289
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,11 +20,19 @@ module AylienNewsApi
|
|
20
20
|
# An array of stories
|
21
21
|
attr_accessor :stories
|
22
22
|
|
23
|
+
# The end of a period in which searched stories were published
|
24
|
+
attr_accessor :published_at_end
|
25
|
+
|
26
|
+
# The start of a period in which searched stories were published
|
27
|
+
attr_accessor :published_at_start
|
28
|
+
|
23
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
30
|
def self.attribute_map
|
25
31
|
{
|
26
32
|
:'next_page_cursor' => :'next_page_cursor',
|
27
|
-
:'stories' => :'stories'
|
33
|
+
:'stories' => :'stories',
|
34
|
+
:'published_at_end' => :'published_at.end',
|
35
|
+
:'published_at_start' => :'published_at.start'
|
28
36
|
}
|
29
37
|
end
|
30
38
|
|
@@ -32,10 +40,18 @@ module AylienNewsApi
|
|
32
40
|
def self.openapi_types
|
33
41
|
{
|
34
42
|
:'next_page_cursor' => :'String',
|
35
|
-
:'stories' => :'Array<Story>'
|
43
|
+
:'stories' => :'Array<Story>',
|
44
|
+
:'published_at_end' => :'DateTime',
|
45
|
+
:'published_at_start' => :'DateTime'
|
36
46
|
}
|
37
47
|
end
|
38
48
|
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
39
55
|
# Initializes the object
|
40
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
57
|
def initialize(attributes = {})
|
@@ -60,6 +76,14 @@ module AylienNewsApi
|
|
60
76
|
self.stories = value
|
61
77
|
end
|
62
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'published_at_end')
|
81
|
+
self.published_at_end = attributes[:'published_at_end']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'published_at_start')
|
85
|
+
self.published_at_start = attributes[:'published_at_start']
|
86
|
+
end
|
63
87
|
end
|
64
88
|
|
65
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -81,7 +105,9 @@ module AylienNewsApi
|
|
81
105
|
return true if self.equal?(o)
|
82
106
|
self.class == o.class &&
|
83
107
|
next_page_cursor == o.next_page_cursor &&
|
84
|
-
stories == o.stories
|
108
|
+
stories == o.stories &&
|
109
|
+
published_at_end == o.published_at_end &&
|
110
|
+
published_at_start == o.published_at_start
|
85
111
|
end
|
86
112
|
|
87
113
|
# @see the `==` method
|
@@ -93,7 +119,7 @@ module AylienNewsApi
|
|
93
119
|
# Calculates hash code according to all attributes.
|
94
120
|
# @return [Integer] Hash code
|
95
121
|
def hash
|
96
|
-
[next_page_cursor, stories].hash
|
122
|
+
[next_page_cursor, stories, published_at_end, published_at_start].hash
|
97
123
|
end
|
98
124
|
|
99
125
|
# Builds the object from hash
|
@@ -182,7 +208,11 @@ module AylienNewsApi
|
|
182
208
|
hash = {}
|
183
209
|
self.class.attribute_map.each_pair do |attr, param|
|
184
210
|
value = self.send(attr)
|
185
|
-
|
211
|
+
if value.nil?
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
|
+
end
|
215
|
+
|
186
216
|
hash[param] = _to_hash(value)
|
187
217
|
end
|
188
218
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -128,6 +128,12 @@ module AylienNewsApi
|
|
128
128
|
}
|
129
129
|
end
|
130
130
|
|
131
|
+
# List of attributes with nullable: true
|
132
|
+
def self.openapi_nullable
|
133
|
+
Set.new([
|
134
|
+
])
|
135
|
+
end
|
136
|
+
|
131
137
|
# Initializes the object
|
132
138
|
# @param [Hash] attributes Model attributes in the form of hash
|
133
139
|
def initialize(attributes = {})
|
@@ -382,7 +388,11 @@ module AylienNewsApi
|
|
382
388
|
hash = {}
|
383
389
|
self.class.attribute_map.each_pair do |attr, param|
|
384
390
|
value = self.send(attr)
|
385
|
-
|
391
|
+
if value.nil?
|
392
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
393
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
394
|
+
end
|
395
|
+
|
386
396
|
hash[param] = _to_hash(value)
|
387
397
|
end
|
388
398
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,6 +51,12 @@ module AylienNewsApi
|
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
|
+
# List of attributes with nullable: true
|
55
|
+
def self.openapi_nullable
|
56
|
+
Set.new([
|
57
|
+
])
|
58
|
+
end
|
59
|
+
|
54
60
|
# Initializes the object
|
55
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
56
62
|
def initialize(attributes = {})
|
@@ -214,7 +220,11 @@ module AylienNewsApi
|
|
214
220
|
hash = {}
|
215
221
|
self.class.attribute_map.each_pair do |attr, param|
|
216
222
|
value = self.send(attr)
|
217
|
-
|
223
|
+
if value.nil?
|
224
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
|
+
end
|
227
|
+
|
218
228
|
hash[param] = _to_hash(value)
|
219
229
|
end
|
220
230
|
hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,22 +17,22 @@ module AylienNewsApi
|
|
17
17
|
# The story canonical URL
|
18
18
|
attr_accessor :canonical
|
19
19
|
|
20
|
-
# The coverages URL
|
21
|
-
attr_accessor :coverages
|
22
|
-
|
23
20
|
# The story permalink URL
|
24
21
|
attr_accessor :permalink
|
25
22
|
|
26
23
|
# The related stories URL
|
27
24
|
attr_accessor :related_stories
|
28
25
|
|
26
|
+
# The clusters endpoint URL for this story
|
27
|
+
attr_accessor :clusters
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
32
|
:'canonical' => :'canonical',
|
33
|
-
:'coverages' => :'coverages',
|
34
33
|
:'permalink' => :'permalink',
|
35
|
-
:'related_stories' => :'related_stories'
|
34
|
+
:'related_stories' => :'related_stories',
|
35
|
+
:'clusters' => :'clusters'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -40,12 +40,18 @@ module AylienNewsApi
|
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
42
|
:'canonical' => :'String',
|
43
|
-
:'coverages' => :'String',
|
44
43
|
:'permalink' => :'String',
|
45
|
-
:'related_stories' => :'String'
|
44
|
+
:'related_stories' => :'String',
|
45
|
+
:'clusters' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
49
55
|
# Initializes the object
|
50
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
57
|
def initialize(attributes = {})
|
@@ -65,10 +71,6 @@ module AylienNewsApi
|
|
65
71
|
self.canonical = attributes[:'canonical']
|
66
72
|
end
|
67
73
|
|
68
|
-
if attributes.key?(:'coverages')
|
69
|
-
self.coverages = attributes[:'coverages']
|
70
|
-
end
|
71
|
-
|
72
74
|
if attributes.key?(:'permalink')
|
73
75
|
self.permalink = attributes[:'permalink']
|
74
76
|
end
|
@@ -76,6 +78,10 @@ module AylienNewsApi
|
|
76
78
|
if attributes.key?(:'related_stories')
|
77
79
|
self.related_stories = attributes[:'related_stories']
|
78
80
|
end
|
81
|
+
|
82
|
+
if attributes.key?(:'clusters')
|
83
|
+
self.clusters = attributes[:'clusters']
|
84
|
+
end
|
79
85
|
end
|
80
86
|
|
81
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -97,9 +103,9 @@ module AylienNewsApi
|
|
97
103
|
return true if self.equal?(o)
|
98
104
|
self.class == o.class &&
|
99
105
|
canonical == o.canonical &&
|
100
|
-
coverages == o.coverages &&
|
101
106
|
permalink == o.permalink &&
|
102
|
-
related_stories == o.related_stories
|
107
|
+
related_stories == o.related_stories &&
|
108
|
+
clusters == o.clusters
|
103
109
|
end
|
104
110
|
|
105
111
|
# @see the `==` method
|
@@ -111,7 +117,7 @@ module AylienNewsApi
|
|
111
117
|
# Calculates hash code according to all attributes.
|
112
118
|
# @return [Integer] Hash code
|
113
119
|
def hash
|
114
|
-
[canonical,
|
120
|
+
[canonical, permalink, related_stories, clusters].hash
|
115
121
|
end
|
116
122
|
|
117
123
|
# Builds the object from hash
|
@@ -200,7 +206,11 @@ module AylienNewsApi
|
|
200
206
|
hash = {}
|
201
207
|
self.class.attribute_map.each_pair do |attr, param|
|
202
208
|
value = self.send(attr)
|
203
|
-
|
209
|
+
if value.nil?
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
212
|
+
end
|
213
|
+
|
204
214
|
hash[param] = _to_hash(value)
|
205
215
|
end
|
206
216
|
hash
|