approveapi_swagger 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/doc/ApproveAPISwagger/AnswerMetadata.html +789 -0
  5. data/doc/ApproveAPISwagger/ApiClient.html +1032 -0
  6. data/doc/ApproveAPISwagger/ApiError.html +224 -0
  7. data/doc/ApproveAPISwagger/ApproveApi.html +501 -0
  8. data/doc/ApproveAPISwagger/Configuration.html +941 -0
  9. data/doc/ApproveAPISwagger/CreatePromptRequest.html +879 -0
  10. data/doc/ApproveAPISwagger/Error.html +754 -0
  11. data/doc/ApproveAPISwagger/Prompt.html +819 -0
  12. data/doc/ApproveAPISwagger/PromptAnswer.html +799 -0
  13. data/doc/ApproveAPISwagger/PromptMetadata.html +829 -0
  14. data/doc/ApproveAPISwagger/PromptStatus.html +754 -0
  15. data/doc/ApproveAPISwagger.html +185 -0
  16. data/doc/Gemfile.html +120 -0
  17. data/doc/Gemfile_lock.html +194 -0
  18. data/doc/README_md.html +225 -0
  19. data/doc/Rakefile.html +125 -0
  20. data/doc/approveapi_swagger_gemspec.html +161 -0
  21. data/doc/created.rid +39 -0
  22. data/doc/css/fonts.css +167 -0
  23. data/doc/css/rdoc.css +590 -0
  24. data/doc/docs/AnswerMetadata_md.html +123 -0
  25. data/doc/docs/ApproveApi_md.html +293 -0
  26. data/doc/docs/CreatePromptRequest_md.html +123 -0
  27. data/doc/docs/Error_md.html +123 -0
  28. data/doc/docs/PromptAnswer_md.html +123 -0
  29. data/doc/docs/PromptMetadata_md.html +123 -0
  30. data/doc/docs/PromptStatus_md.html +123 -0
  31. data/doc/docs/Prompt_md.html +123 -0
  32. data/doc/fonts/Lato-Light.ttf +0 -0
  33. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  34. data/doc/fonts/Lato-Regular.ttf +0 -0
  35. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  36. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  37. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  38. data/doc/git_push_sh.html +157 -0
  39. data/doc/images/add.png +0 -0
  40. data/doc/images/arrow_up.png +0 -0
  41. data/doc/images/brick.png +0 -0
  42. data/doc/images/brick_link.png +0 -0
  43. data/doc/images/bug.png +0 -0
  44. data/doc/images/bullet_black.png +0 -0
  45. data/doc/images/bullet_toggle_minus.png +0 -0
  46. data/doc/images/bullet_toggle_plus.png +0 -0
  47. data/doc/images/date.png +0 -0
  48. data/doc/images/delete.png +0 -0
  49. data/doc/images/find.png +0 -0
  50. data/doc/images/loadingAnimation.gif +0 -0
  51. data/doc/images/macFFBgHack.png +0 -0
  52. data/doc/images/package.png +0 -0
  53. data/doc/images/page_green.png +0 -0
  54. data/doc/images/page_white_text.png +0 -0
  55. data/doc/images/page_white_width.png +0 -0
  56. data/doc/images/plugin.png +0 -0
  57. data/doc/images/ruby.png +0 -0
  58. data/doc/images/tag_blue.png +0 -0
  59. data/doc/images/tag_green.png +0 -0
  60. data/doc/images/transparent.png +0 -0
  61. data/doc/images/wrench.png +0 -0
  62. data/doc/images/wrench_orange.png +0 -0
  63. data/doc/images/zoom.png +0 -0
  64. data/doc/index.html +141 -0
  65. data/doc/js/darkfish.js +161 -0
  66. data/doc/js/jquery.js +4 -0
  67. data/doc/js/navigation.js +141 -0
  68. data/doc/js/navigation.js.gz +0 -0
  69. data/doc/js/search.js +109 -0
  70. data/doc/js/search_index.js +1 -0
  71. data/doc/js/search_index.js.gz +0 -0
  72. data/doc/js/searcher.js +229 -0
  73. data/doc/js/searcher.js.gz +0 -0
  74. data/doc/table_of_contents.html +1036 -0
  75. data/docs/AnswerMetadata.md +1 -1
  76. data/docs/CreatePromptRequest.md +3 -3
  77. data/docs/Prompt.md +3 -3
  78. data/docs/PromptAnswer.md +1 -1
  79. data/docs/PromptMetadata.md +2 -2
  80. data/docs/PromptStatus.md +1 -0
  81. data/lib/approveapi_swagger/api/approve_api.rb +1 -0
  82. data/lib/approveapi_swagger/models/answer_metadata.rb +15 -13
  83. data/lib/approveapi_swagger/models/create_prompt_request.rb +35 -33
  84. data/lib/approveapi_swagger/models/error.rb +2 -0
  85. data/lib/approveapi_swagger/models/prompt.rb +33 -26
  86. data/lib/approveapi_swagger/models/prompt_answer.rb +18 -16
  87. data/lib/approveapi_swagger/models/prompt_metadata.rb +26 -24
  88. data/lib/approveapi_swagger/models/prompt_status.rb +21 -4
  89. data/lib/approveapi_swagger/version.rb +1 -1
  90. data/pkg/approveapi_swagger-1.0.2.gem +0 -0
  91. metadata +78 -7
  92. data/pkg/approveapi_swagger-1.0.1.gem +0 -0
@@ -14,40 +14,40 @@ require 'date'
14
14
 
15
15
  module ApproveAPISwagger
16
16
  class PromptMetadata
17
- # The physical location, like Oakland, CA, of the action.
18
- attr_accessor :location
19
-
20
17
  # The date/time of the action.
21
18
  attr_accessor :time
22
19
 
20
+ # The operating system initiating the action, i.e. Mac OS X.
21
+ attr_accessor :operating_system
22
+
23
23
  # The IP address of the computer initiating the action.
24
24
  attr_accessor :ip_address
25
25
 
26
+ # The physical location, like Oakland, CA, of the action.
27
+ attr_accessor :location
28
+
26
29
  # The web browser initiating the action, i.e. Chrome.
27
30
  attr_accessor :browser
28
31
 
29
- # The operating system initiating the action, i.e. Mac OS X.
30
- attr_accessor :operating_system
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'location' => :'location',
36
35
  :'time' => :'time',
36
+ :'operating_system' => :'operating_system',
37
37
  :'ip_address' => :'ip_address',
38
- :'browser' => :'browser',
39
- :'operating_system' => :'operating_system'
38
+ :'location' => :'location',
39
+ :'browser' => :'browser'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'location' => :'String',
47
46
  :'time' => :'String',
47
+ :'operating_system' => :'String',
48
48
  :'ip_address' => :'String',
49
- :'browser' => :'String',
50
- :'operating_system' => :'String'
49
+ :'location' => :'String',
50
+ :'browser' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -59,24 +59,24 @@ module ApproveAPISwagger
59
59
  # convert string to symbol for hash key
60
60
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
61
 
62
- if attributes.has_key?(:'location')
63
- self.location = attributes[:'location']
64
- end
65
-
66
62
  if attributes.has_key?(:'time')
67
63
  self.time = attributes[:'time']
68
64
  end
69
65
 
66
+ if attributes.has_key?(:'operating_system')
67
+ self.operating_system = attributes[:'operating_system']
68
+ end
69
+
70
70
  if attributes.has_key?(:'ip_address')
71
71
  self.ip_address = attributes[:'ip_address']
72
72
  end
73
73
 
74
- if attributes.has_key?(:'browser')
75
- self.browser = attributes[:'browser']
74
+ if attributes.has_key?(:'location')
75
+ self.location = attributes[:'location']
76
76
  end
77
77
 
78
- if attributes.has_key?(:'operating_system')
79
- self.operating_system = attributes[:'operating_system']
78
+ if attributes.has_key?(:'browser')
79
+ self.browser = attributes[:'browser']
80
80
  end
81
81
  end
82
82
 
@@ -98,11 +98,11 @@ module ApproveAPISwagger
98
98
  def ==(o)
99
99
  return true if self.equal?(o)
100
100
  self.class == o.class &&
101
- location == o.location &&
102
101
  time == o.time &&
102
+ operating_system == o.operating_system &&
103
103
  ip_address == o.ip_address &&
104
- browser == o.browser &&
105
- operating_system == o.operating_system
104
+ location == o.location &&
105
+ browser == o.browser
106
106
  end
107
107
 
108
108
  # @see the `==` method
@@ -114,7 +114,7 @@ module ApproveAPISwagger
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Fixnum] Hash code
116
116
  def hash
117
- [location, time, ip_address, browser, operating_system].hash
117
+ [time, operating_system, ip_address, location, browser].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash
@@ -226,5 +226,7 @@ module ApproveAPISwagger
226
226
  value
227
227
  end
228
228
  end
229
+
229
230
  end
231
+
230
232
  end
@@ -17,17 +17,22 @@ module ApproveAPISwagger
17
17
  # Whether the prompt has been answered or not.
18
18
  attr_accessor :is_answered
19
19
 
20
+ # Whether the prompt can still be answered.
21
+ attr_accessor :is_expired
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'is_answered' => :'is_answered'
26
+ :'is_answered' => :'is_answered',
27
+ :'is_expired' => :'is_expired'
24
28
  }
25
29
  end
26
30
 
27
31
  # Attribute type mapping.
28
32
  def self.openapi_types
29
33
  {
30
- :'is_answered' => :'BOOLEAN'
34
+ :'is_answered' => :'BOOLEAN',
35
+ :'is_expired' => :'BOOLEAN'
31
36
  }
32
37
  end
33
38
 
@@ -42,6 +47,10 @@ module ApproveAPISwagger
42
47
  if attributes.has_key?(:'is_answered')
43
48
  self.is_answered = attributes[:'is_answered']
44
49
  end
50
+
51
+ if attributes.has_key?(:'is_expired')
52
+ self.is_expired = attributes[:'is_expired']
53
+ end
45
54
  end
46
55
 
47
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -52,6 +61,10 @@ module ApproveAPISwagger
52
61
  invalid_properties.push('invalid value for "is_answered", is_answered cannot be nil.')
53
62
  end
54
63
 
64
+ if @is_expired.nil?
65
+ invalid_properties.push('invalid value for "is_expired", is_expired cannot be nil.')
66
+ end
67
+
55
68
  invalid_properties
56
69
  end
57
70
 
@@ -59,6 +72,7 @@ module ApproveAPISwagger
59
72
  # @return true if the model is valid
60
73
  def valid?
61
74
  return false if @is_answered.nil?
75
+ return false if @is_expired.nil?
62
76
  true
63
77
  end
64
78
 
@@ -67,7 +81,8 @@ module ApproveAPISwagger
67
81
  def ==(o)
68
82
  return true if self.equal?(o)
69
83
  self.class == o.class &&
70
- is_answered == o.is_answered
84
+ is_answered == o.is_answered &&
85
+ is_expired == o.is_expired
71
86
  end
72
87
 
73
88
  # @see the `==` method
@@ -79,7 +94,7 @@ module ApproveAPISwagger
79
94
  # Calculates hash code according to all attributes.
80
95
  # @return [Fixnum] Hash code
81
96
  def hash
82
- [is_answered].hash
97
+ [is_answered, is_expired].hash
83
98
  end
84
99
 
85
100
  # Builds the object from hash
@@ -191,5 +206,7 @@ module ApproveAPISwagger
191
206
  value
192
207
  end
193
208
  end
209
+
194
210
  end
211
+
195
212
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module ApproveAPISwagger
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: approveapi_swagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ApproveAPI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -202,6 +202,77 @@ files:
202
202
  - README.md
203
203
  - Rakefile
204
204
  - approveapi_swagger.gemspec
205
+ - doc/ApproveAPISwagger.html
206
+ - doc/ApproveAPISwagger/AnswerMetadata.html
207
+ - doc/ApproveAPISwagger/ApiClient.html
208
+ - doc/ApproveAPISwagger/ApiError.html
209
+ - doc/ApproveAPISwagger/ApproveApi.html
210
+ - doc/ApproveAPISwagger/Configuration.html
211
+ - doc/ApproveAPISwagger/CreatePromptRequest.html
212
+ - doc/ApproveAPISwagger/Error.html
213
+ - doc/ApproveAPISwagger/Prompt.html
214
+ - doc/ApproveAPISwagger/PromptAnswer.html
215
+ - doc/ApproveAPISwagger/PromptMetadata.html
216
+ - doc/ApproveAPISwagger/PromptStatus.html
217
+ - doc/Gemfile.html
218
+ - doc/Gemfile_lock.html
219
+ - doc/README_md.html
220
+ - doc/Rakefile.html
221
+ - doc/approveapi_swagger_gemspec.html
222
+ - doc/created.rid
223
+ - doc/css/fonts.css
224
+ - doc/css/rdoc.css
225
+ - doc/docs/AnswerMetadata_md.html
226
+ - doc/docs/ApproveApi_md.html
227
+ - doc/docs/CreatePromptRequest_md.html
228
+ - doc/docs/Error_md.html
229
+ - doc/docs/PromptAnswer_md.html
230
+ - doc/docs/PromptMetadata_md.html
231
+ - doc/docs/PromptStatus_md.html
232
+ - doc/docs/Prompt_md.html
233
+ - doc/fonts/Lato-Light.ttf
234
+ - doc/fonts/Lato-LightItalic.ttf
235
+ - doc/fonts/Lato-Regular.ttf
236
+ - doc/fonts/Lato-RegularItalic.ttf
237
+ - doc/fonts/SourceCodePro-Bold.ttf
238
+ - doc/fonts/SourceCodePro-Regular.ttf
239
+ - doc/git_push_sh.html
240
+ - doc/images/add.png
241
+ - doc/images/arrow_up.png
242
+ - doc/images/brick.png
243
+ - doc/images/brick_link.png
244
+ - doc/images/bug.png
245
+ - doc/images/bullet_black.png
246
+ - doc/images/bullet_toggle_minus.png
247
+ - doc/images/bullet_toggle_plus.png
248
+ - doc/images/date.png
249
+ - doc/images/delete.png
250
+ - doc/images/find.png
251
+ - doc/images/loadingAnimation.gif
252
+ - doc/images/macFFBgHack.png
253
+ - doc/images/package.png
254
+ - doc/images/page_green.png
255
+ - doc/images/page_white_text.png
256
+ - doc/images/page_white_width.png
257
+ - doc/images/plugin.png
258
+ - doc/images/ruby.png
259
+ - doc/images/tag_blue.png
260
+ - doc/images/tag_green.png
261
+ - doc/images/transparent.png
262
+ - doc/images/wrench.png
263
+ - doc/images/wrench_orange.png
264
+ - doc/images/zoom.png
265
+ - doc/index.html
266
+ - doc/js/darkfish.js
267
+ - doc/js/jquery.js
268
+ - doc/js/navigation.js
269
+ - doc/js/navigation.js.gz
270
+ - doc/js/search.js
271
+ - doc/js/search_index.js
272
+ - doc/js/search_index.js.gz
273
+ - doc/js/searcher.js
274
+ - doc/js/searcher.js.gz
275
+ - doc/table_of_contents.html
205
276
  - docs/AnswerMetadata.md
206
277
  - docs/ApproveApi.md
207
278
  - docs/CreatePromptRequest.md
@@ -224,7 +295,7 @@ files:
224
295
  - lib/approveapi_swagger/models/prompt_metadata.rb
225
296
  - lib/approveapi_swagger/models/prompt_status.rb
226
297
  - lib/approveapi_swagger/version.rb
227
- - pkg/approveapi_swagger-1.0.1.gem
298
+ - pkg/approveapi_swagger-1.0.2.gem
228
299
  - spec/api/approve_api_spec.rb
229
300
  - spec/api_client_spec.rb
230
301
  - spec/configuration_spec.rb
@@ -264,11 +335,11 @@ test_files:
264
335
  - spec/api/approve_api_spec.rb
265
336
  - spec/api_client_spec.rb
266
337
  - spec/configuration_spec.rb
267
- - spec/models/answer_metadata_spec.rb
268
- - spec/models/prompt_spec.rb
269
- - spec/models/prompt_answer_spec.rb
270
- - spec/models/prompt_status_spec.rb
271
338
  - spec/models/error_spec.rb
272
339
  - spec/models/prompt_metadata_spec.rb
340
+ - spec/models/prompt_answer_spec.rb
341
+ - spec/models/prompt_status_spec.rb
273
342
  - spec/models/create_prompt_request_spec.rb
343
+ - spec/models/answer_metadata_spec.rb
344
+ - spec/models/prompt_spec.rb
274
345
  - spec/spec_helper.rb
Binary file