aylien_news_api 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/ErrorLinks.md +3 -1
- data/docs/RelatedStories.md +5 -1
- data/docs/Stories.md +3 -1
- data/docs/Warning.md +21 -0
- data/lib/aylien_news_api.rb +1 -0
- data/lib/aylien_news_api/models/error_links.rb +13 -4
- data/lib/aylien_news_api/models/related_stories.rb +24 -4
- data/lib/aylien_news_api/models/stories.rb +16 -4
- data/lib/aylien_news_api/models/warning.rb +226 -0
- data/lib/aylien_news_api/version.rb +1 -1
- data/spec/models/error_links_spec.rb +6 -0
- data/spec/models/related_stories_spec.rb +12 -0
- data/spec/models/stories_spec.rb +6 -0
- data/spec/models/warning_spec.rb +53 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 103a59a0b85dedac191c3759850adf87723bcd7f4e98ccc5b86a07b9c5897c7d
|
4
|
+
data.tar.gz: adc3d91e41664186fa776a30bf6ad37ff85534e8cd8d79af8ba153da178eb789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9520368541991c79a467bf62d04796567963befd52bcc02b691136481573fa1bbf618afcbbfc62d393e4b830c579567b1a54169d4ec82e67e80ffa86e43a509b
|
7
|
+
data.tar.gz: 0c64e2a57e8ee735f715f8d4c8bd063d461641743f80590548950e07c0f0bc15e269b317be76329fdf92481cbfac3211fdcb2efd877af71d0f1a37021a1ebe13
|
data/docs/ErrorLinks.md
CHANGED
@@ -5,13 +5,15 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**about** | **String** | | [optional]
|
8
|
+
**docs** | **String** | | [optional]
|
8
9
|
|
9
10
|
## Code Sample
|
10
11
|
|
11
12
|
```ruby
|
12
13
|
require 'AylienNewsApi'
|
13
14
|
|
14
|
-
instance = AylienNewsApi::ErrorLinks.new(about: null
|
15
|
+
instance = AylienNewsApi::ErrorLinks.new(about: null,
|
16
|
+
docs: null)
|
15
17
|
```
|
16
18
|
|
17
19
|
|
data/docs/RelatedStories.md
CHANGED
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
|
|
8
8
|
**story_body** | **String** | The input story body | [optional]
|
9
9
|
**story_language** | **String** | The input story language | [optional]
|
10
10
|
**story_title** | **String** | The input story title | [optional]
|
11
|
+
**published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
|
12
|
+
**published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
|
11
13
|
|
12
14
|
## Code Sample
|
13
15
|
|
@@ -17,7 +19,9 @@ require 'AylienNewsApi'
|
|
17
19
|
instance = AylienNewsApi::RelatedStories.new(related_stories: null,
|
18
20
|
story_body: null,
|
19
21
|
story_language: null,
|
20
|
-
story_title: null
|
22
|
+
story_title: null,
|
23
|
+
published_at_end: null,
|
24
|
+
published_at_start: null)
|
21
25
|
```
|
22
26
|
|
23
27
|
|
data/docs/Stories.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**stories** | [**Array<Story>**](Story.md) | An array of stories | [optional]
|
9
9
|
**published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
|
10
10
|
**published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
|
11
|
+
**warnings** | [**Array<Warning>**](Warning.md) | Notifies about possible issues that occurred when searching for stories | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
13
14
|
|
@@ -17,7 +18,8 @@ require 'AylienNewsApi'
|
|
17
18
|
instance = AylienNewsApi::Stories.new(next_page_cursor: null,
|
18
19
|
stories: null,
|
19
20
|
published_at_end: null,
|
20
|
-
published_at_start: null
|
21
|
+
published_at_start: null,
|
22
|
+
warnings: null)
|
21
23
|
```
|
22
24
|
|
23
25
|
|
data/docs/Warning.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# AylienNewsApi::Warning
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | The identfier of the warning, represents its origin. | [optional]
|
8
|
+
**links** | [**ErrorLinks**](ErrorLinks.md) | | [optional]
|
9
|
+
**detail** | **String** | The detailed description of the warning. | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'AylienNewsApi'
|
15
|
+
|
16
|
+
instance = AylienNewsApi::Warning.new(id: null,
|
17
|
+
links: null,
|
18
|
+
detail: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/lib/aylien_news_api.rb
CHANGED
@@ -60,6 +60,7 @@ require 'aylien_news_api/models/time_series'
|
|
60
60
|
require 'aylien_news_api/models/time_series_list'
|
61
61
|
require 'aylien_news_api/models/trend'
|
62
62
|
require 'aylien_news_api/models/trends'
|
63
|
+
require 'aylien_news_api/models/warning'
|
63
64
|
|
64
65
|
# APIs
|
65
66
|
require 'aylien_news_api/api/default_api'
|
@@ -16,17 +16,21 @@ module AylienNewsApi
|
|
16
16
|
class ErrorLinks
|
17
17
|
attr_accessor :about
|
18
18
|
|
19
|
+
attr_accessor :docs
|
20
|
+
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
22
|
def self.attribute_map
|
21
23
|
{
|
22
|
-
:'about' => :'about'
|
24
|
+
:'about' => :'about',
|
25
|
+
:'docs' => :'docs'
|
23
26
|
}
|
24
27
|
end
|
25
28
|
|
26
29
|
# Attribute type mapping.
|
27
30
|
def self.openapi_types
|
28
31
|
{
|
29
|
-
:'about' => :'String'
|
32
|
+
:'about' => :'String',
|
33
|
+
:'docs' => :'String'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -54,6 +58,10 @@ module AylienNewsApi
|
|
54
58
|
if attributes.key?(:'about')
|
55
59
|
self.about = attributes[:'about']
|
56
60
|
end
|
61
|
+
|
62
|
+
if attributes.key?(:'docs')
|
63
|
+
self.docs = attributes[:'docs']
|
64
|
+
end
|
57
65
|
end
|
58
66
|
|
59
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -74,7 +82,8 @@ module AylienNewsApi
|
|
74
82
|
def ==(o)
|
75
83
|
return true if self.equal?(o)
|
76
84
|
self.class == o.class &&
|
77
|
-
about == o.about
|
85
|
+
about == o.about &&
|
86
|
+
docs == o.docs
|
78
87
|
end
|
79
88
|
|
80
89
|
# @see the `==` method
|
@@ -86,7 +95,7 @@ module AylienNewsApi
|
|
86
95
|
# Calculates hash code according to all attributes.
|
87
96
|
# @return [Integer] Hash code
|
88
97
|
def hash
|
89
|
-
[about].hash
|
98
|
+
[about, docs].hash
|
90
99
|
end
|
91
100
|
|
92
101
|
# Builds the object from hash
|
@@ -26,13 +26,21 @@ module AylienNewsApi
|
|
26
26
|
# The input story title
|
27
27
|
attr_accessor :story_title
|
28
28
|
|
29
|
+
# The end of a period in which searched stories were published
|
30
|
+
attr_accessor :published_at_end
|
31
|
+
|
32
|
+
# The start of a period in which searched stories were published
|
33
|
+
attr_accessor :published_at_start
|
34
|
+
|
29
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
36
|
def self.attribute_map
|
31
37
|
{
|
32
38
|
:'related_stories' => :'related_stories',
|
33
39
|
:'story_body' => :'story_body',
|
34
40
|
:'story_language' => :'story_language',
|
35
|
-
:'story_title' => :'story_title'
|
41
|
+
:'story_title' => :'story_title',
|
42
|
+
:'published_at_end' => :'published_at.end',
|
43
|
+
:'published_at_start' => :'published_at.start'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -42,7 +50,9 @@ module AylienNewsApi
|
|
42
50
|
:'related_stories' => :'Array<Story>',
|
43
51
|
:'story_body' => :'String',
|
44
52
|
:'story_language' => :'String',
|
45
|
-
:'story_title' => :'String'
|
53
|
+
:'story_title' => :'String',
|
54
|
+
:'published_at_end' => :'DateTime',
|
55
|
+
:'published_at_start' => :'DateTime'
|
46
56
|
}
|
47
57
|
end
|
48
58
|
|
@@ -84,6 +94,14 @@ module AylienNewsApi
|
|
84
94
|
if attributes.key?(:'story_title')
|
85
95
|
self.story_title = attributes[:'story_title']
|
86
96
|
end
|
97
|
+
|
98
|
+
if attributes.key?(:'published_at_end')
|
99
|
+
self.published_at_end = attributes[:'published_at_end']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'published_at_start')
|
103
|
+
self.published_at_start = attributes[:'published_at_start']
|
104
|
+
end
|
87
105
|
end
|
88
106
|
|
89
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -107,7 +125,9 @@ module AylienNewsApi
|
|
107
125
|
related_stories == o.related_stories &&
|
108
126
|
story_body == o.story_body &&
|
109
127
|
story_language == o.story_language &&
|
110
|
-
story_title == o.story_title
|
128
|
+
story_title == o.story_title &&
|
129
|
+
published_at_end == o.published_at_end &&
|
130
|
+
published_at_start == o.published_at_start
|
111
131
|
end
|
112
132
|
|
113
133
|
# @see the `==` method
|
@@ -119,7 +139,7 @@ module AylienNewsApi
|
|
119
139
|
# Calculates hash code according to all attributes.
|
120
140
|
# @return [Integer] Hash code
|
121
141
|
def hash
|
122
|
-
[related_stories, story_body, story_language, story_title].hash
|
142
|
+
[related_stories, story_body, story_language, story_title, published_at_end, published_at_start].hash
|
123
143
|
end
|
124
144
|
|
125
145
|
# Builds the object from hash
|
@@ -26,13 +26,17 @@ module AylienNewsApi
|
|
26
26
|
# The start of a period in which searched stories were published
|
27
27
|
attr_accessor :published_at_start
|
28
28
|
|
29
|
+
# Notifies about possible issues that occurred when searching for stories
|
30
|
+
attr_accessor :warnings
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'next_page_cursor' => :'next_page_cursor',
|
33
36
|
:'stories' => :'stories',
|
34
37
|
:'published_at_end' => :'published_at.end',
|
35
|
-
:'published_at_start' => :'published_at.start'
|
38
|
+
:'published_at_start' => :'published_at.start',
|
39
|
+
:'warnings' => :'warnings'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module AylienNewsApi
|
|
42
46
|
:'next_page_cursor' => :'String',
|
43
47
|
:'stories' => :'Array<Story>',
|
44
48
|
:'published_at_end' => :'DateTime',
|
45
|
-
:'published_at_start' => :'DateTime'
|
49
|
+
:'published_at_start' => :'DateTime',
|
50
|
+
:'warnings' => :'Array<Warning>'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -84,6 +89,12 @@ module AylienNewsApi
|
|
84
89
|
if attributes.key?(:'published_at_start')
|
85
90
|
self.published_at_start = attributes[:'published_at_start']
|
86
91
|
end
|
92
|
+
|
93
|
+
if attributes.key?(:'warnings')
|
94
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
95
|
+
self.warnings = value
|
96
|
+
end
|
97
|
+
end
|
87
98
|
end
|
88
99
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -107,7 +118,8 @@ module AylienNewsApi
|
|
107
118
|
next_page_cursor == o.next_page_cursor &&
|
108
119
|
stories == o.stories &&
|
109
120
|
published_at_end == o.published_at_end &&
|
110
|
-
published_at_start == o.published_at_start
|
121
|
+
published_at_start == o.published_at_start &&
|
122
|
+
warnings == o.warnings
|
111
123
|
end
|
112
124
|
|
113
125
|
# @see the `==` method
|
@@ -119,7 +131,7 @@ module AylienNewsApi
|
|
119
131
|
# Calculates hash code according to all attributes.
|
120
132
|
# @return [Integer] Hash code
|
121
133
|
def hash
|
122
|
-
[next_page_cursor, stories, published_at_end, published_at_start].hash
|
134
|
+
[next_page_cursor, stories, published_at_end, published_at_start, warnings].hash
|
123
135
|
end
|
124
136
|
|
125
137
|
# Builds the object from hash
|
@@ -0,0 +1,226 @@
|
|
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 Warning
|
17
|
+
# The identfier of the warning, represents its origin.
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :links
|
21
|
+
|
22
|
+
# The detailed description of the warning.
|
23
|
+
attr_accessor :detail
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'id' => :'id',
|
29
|
+
:'links' => :'links',
|
30
|
+
:'detail' => :'detail'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.openapi_types
|
36
|
+
{
|
37
|
+
:'id' => :'String',
|
38
|
+
:'links' => :'ErrorLinks',
|
39
|
+
:'detail' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AylienNewsApi::Warning` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AylienNewsApi::Warning`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'id')
|
65
|
+
self.id = attributes[:'id']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'links')
|
69
|
+
self.links = attributes[:'links']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'detail')
|
73
|
+
self.detail = attributes[:'detail']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
78
|
+
# @return Array for valid properties with the reasons
|
79
|
+
def list_invalid_properties
|
80
|
+
invalid_properties = Array.new
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
true
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def ==(o)
|
93
|
+
return true if self.equal?(o)
|
94
|
+
self.class == o.class &&
|
95
|
+
id == o.id &&
|
96
|
+
links == o.links &&
|
97
|
+
detail == o.detail
|
98
|
+
end
|
99
|
+
|
100
|
+
# @see the `==` method
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def eql?(o)
|
103
|
+
self == o
|
104
|
+
end
|
105
|
+
|
106
|
+
# Calculates hash code according to all attributes.
|
107
|
+
# @return [Integer] Hash code
|
108
|
+
def hash
|
109
|
+
[id, links, detail].hash
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def self.build_from_hash(attributes)
|
116
|
+
new.build_from_hash(attributes)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def build_from_hash(attributes)
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
124
|
+
self.class.openapi_types.each_pair do |key, type|
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :DateTime
|
146
|
+
DateTime.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :Boolean
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
AylienNewsApi.const_get(type).build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -56,4 +56,16 @@ describe 'RelatedStories' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "published_at_end"' 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 "published_at_start"' 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
|
+
|
59
71
|
end
|
data/spec/models/stories_spec.rb
CHANGED
@@ -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::Warning
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Warning' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::Warning.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Warning' do
|
31
|
+
it 'should create an instance of Warning' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Warning)
|
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 "links"' 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 "detail"' 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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aylien_news_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AYLIEN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- docs/TimeSeriesList.md
|
103
103
|
- docs/Trend.md
|
104
104
|
- docs/Trends.md
|
105
|
+
- docs/Warning.md
|
105
106
|
- git_push.sh
|
106
107
|
- lib/aylien_news_api.rb
|
107
108
|
- lib/aylien_news_api/api/default_api.rb
|
@@ -153,6 +154,7 @@ files:
|
|
153
154
|
- lib/aylien_news_api/models/time_series_list.rb
|
154
155
|
- lib/aylien_news_api/models/trend.rb
|
155
156
|
- lib/aylien_news_api/models/trends.rb
|
157
|
+
- lib/aylien_news_api/models/warning.rb
|
156
158
|
- lib/aylien_news_api/version.rb
|
157
159
|
- spec/api/default_api_spec.rb
|
158
160
|
- spec/api_client_spec.rb
|
@@ -202,6 +204,7 @@ files:
|
|
202
204
|
- spec/models/time_series_spec.rb
|
203
205
|
- spec/models/trend_spec.rb
|
204
206
|
- spec/models/trends_spec.rb
|
207
|
+
- spec/models/warning_spec.rb
|
205
208
|
- spec/spec_helper.rb
|
206
209
|
homepage: https://newsapi.aylien.com/
|
207
210
|
licenses:
|
@@ -253,6 +256,7 @@ test_files:
|
|
253
256
|
- spec/models/rankings_spec.rb
|
254
257
|
- spec/models/category_taxonomy_spec.rb
|
255
258
|
- spec/models/time_series_list_spec.rb
|
259
|
+
- spec/models/warning_spec.rb
|
256
260
|
- spec/models/coverages_spec.rb
|
257
261
|
- spec/models/share_counts_spec.rb
|
258
262
|
- spec/models/location_spec.rb
|