cloudmersive-image-recognition-api-client 1.4.6 → 2.0.5

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +17 -6
  4. data/cloudmersive-image-recognition-api-client.gemspec +3 -3
  5. data/docs/ArtisticApi.md +2 -2
  6. data/docs/ConvertApi.md +7 -7
  7. data/docs/CreateHandwritingRequest.md +11 -0
  8. data/docs/DrawTextInstance.md +1 -1
  9. data/docs/EditApi.md +147 -11
  10. data/docs/FaceApi.md +8 -8
  11. data/docs/FilterApi.md +8 -8
  12. data/docs/ImageSimilarityComparisonResponse.md +10 -0
  13. data/docs/ImageSimilarityHashDistanceRequest.md +9 -0
  14. data/docs/ImageSimilarityHashDistanceResponse.md +9 -0
  15. data/docs/ImageSimilarityHashResponse.md +9 -0
  16. data/docs/InfoApi.md +2 -2
  17. data/docs/NsfwApi.md +1 -1
  18. data/docs/RecognizeApi.md +187 -11
  19. data/docs/ResizeApi.md +4 -4
  20. data/docs/TextGenerationApi.md +63 -0
  21. data/lib/cloudmersive-image-recognition-api-client.rb +7 -1
  22. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
  23. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +30 -37
  24. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +199 -58
  25. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +31 -38
  26. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +34 -42
  27. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +10 -12
  28. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +6 -7
  29. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +214 -45
  30. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +14 -16
  31. data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +77 -0
  32. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
  33. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  34. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
  35. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
  36. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
  37. data/lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb +216 -0
  38. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
  39. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
  40. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
  41. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
  42. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
  43. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
  44. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
  45. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
  46. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
  47. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
  48. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
  49. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +7 -10
  50. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
  51. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
  52. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
  53. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
  54. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
  55. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
  56. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
  57. data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
  58. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
  59. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +7 -10
  60. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
  61. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_comparison_response.rb +206 -0
  62. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +196 -0
  63. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb +196 -0
  64. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb +196 -0
  65. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
  66. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
  67. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
  68. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
  69. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
  70. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
  71. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
  72. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
  73. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
  74. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  75. data/spec/api/artistic_api_spec.rb +2 -2
  76. data/spec/api/convert_api_spec.rb +8 -8
  77. data/spec/api/edit_api_spec.rb +47 -13
  78. data/spec/api/face_api_spec.rb +8 -8
  79. data/spec/api/filter_api_spec.rb +9 -9
  80. data/spec/api/info_api_spec.rb +3 -3
  81. data/spec/api/nsfw_api_spec.rb +2 -2
  82. data/spec/api/recognize_api_spec.rb +49 -10
  83. data/spec/api/resize_api_spec.rb +5 -5
  84. data/spec/api/text_generation_api_spec.rb +47 -0
  85. data/spec/api_client_spec.rb +52 -35
  86. data/spec/configuration_spec.rb +9 -9
  87. data/spec/models/age_detection_result_spec.rb +4 -5
  88. data/spec/models/color_result_spec.rb +4 -5
  89. data/spec/models/create_handwriting_request_spec.rb +59 -0
  90. data/spec/models/detected_license_plate_spec.rb +8 -9
  91. data/spec/models/detected_object_spec.rb +7 -8
  92. data/spec/models/dominant_color_result_spec.rb +3 -4
  93. data/spec/models/draw_polygon_instance_spec.rb +5 -6
  94. data/spec/models/draw_polygon_request_spec.rb +4 -5
  95. data/spec/models/draw_rectangle_instance_spec.rb +8 -9
  96. data/spec/models/draw_rectangle_request_spec.rb +4 -5
  97. data/spec/models/draw_text_instance_spec.rb +9 -10
  98. data/spec/models/draw_text_request_spec.rb +4 -5
  99. data/spec/models/face_compare_response_spec.rb +5 -6
  100. data/spec/models/face_locate_response_spec.rb +5 -6
  101. data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
  102. data/spec/models/face_match_spec.rb +7 -8
  103. data/spec/models/face_point_spec.rb +3 -4
  104. data/spec/models/face_spec.rb +5 -6
  105. data/spec/models/face_with_landmarks_spec.rb +14 -15
  106. data/spec/models/find_symbol_result_spec.rb +7 -8
  107. data/spec/models/fine_text_detection_result_spec.rb +4 -5
  108. data/spec/models/fine_text_item_spec.rb +12 -13
  109. data/spec/models/gender_detection_result_spec.rb +4 -5
  110. data/spec/models/image_description_response_spec.rb +5 -6
  111. data/spec/models/image_metadata_exif_value_spec.rb +4 -5
  112. data/spec/models/image_metadata_spec.rb +11 -12
  113. data/spec/models/image_similarity_comparison_response_spec.rb +53 -0
  114. data/spec/models/image_similarity_hash_distance_request_spec.rb +47 -0
  115. data/spec/models/image_similarity_hash_distance_response_spec.rb +47 -0
  116. data/spec/models/image_similarity_hash_response_spec.rb +47 -0
  117. data/spec/models/nsfw_result_spec.rb +4 -5
  118. data/spec/models/object_detection_result_spec.rb +4 -5
  119. data/spec/models/person_with_age_spec.rb +5 -6
  120. data/spec/models/person_with_gender_spec.rb +4 -5
  121. data/spec/models/polygon_point_spec.rb +3 -4
  122. data/spec/models/recognition_outcome_spec.rb +3 -4
  123. data/spec/models/text_detection_result_spec.rb +4 -5
  124. data/spec/models/text_item_spec.rb +5 -6
  125. data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
  126. data/spec/spec_helper.rb +1 -1
  127. metadata +20 -2
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -27,7 +27,6 @@ module CloudmersiveImageRecognitionApiClient
27
27
  # Details of any errors that occurred
28
28
  attr_accessor :error_details
29
29
 
30
-
31
30
  # Attribute mapping from ruby-style variable name to JSON key.
32
31
  def self.attribute_map
33
32
  {
@@ -54,7 +53,7 @@ module CloudmersiveImageRecognitionApiClient
54
53
  return unless attributes.is_a?(Hash)
55
54
 
56
55
  # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
57
 
59
58
  if attributes.has_key?(:'Successful')
60
59
  self.successful = attributes[:'Successful']
@@ -73,20 +72,19 @@ module CloudmersiveImageRecognitionApiClient
73
72
  if attributes.has_key?(:'ErrorDetails')
74
73
  self.error_details = attributes[:'ErrorDetails']
75
74
  end
76
-
77
75
  end
78
76
 
79
77
  # Show invalid properties with the reasons. Usually used together with valid?
80
78
  # @return Array for valid properties with the reasons
81
79
  def list_invalid_properties
82
80
  invalid_properties = Array.new
83
- return invalid_properties
81
+ invalid_properties
84
82
  end
85
83
 
86
84
  # Check to see if the all the properties in the model are valid
87
85
  # @return true if the model is valid
88
86
  def valid?
89
- return true
87
+ true
90
88
  end
91
89
 
92
90
  # Checks equality by comparing each attribute.
@@ -119,10 +117,10 @@ module CloudmersiveImageRecognitionApiClient
119
117
  return nil unless attributes.is_a?(Hash)
120
118
  self.class.swagger_types.each_pair do |key, type|
121
119
  if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
120
+ # check to ensure the input is an array given that the attribute
123
121
  # is documented as an array but the input is not
124
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
124
  end
127
125
  elsif !attributes[self.class.attribute_map[key]].nil?
128
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -204,7 +202,7 @@ module CloudmersiveImageRecognitionApiClient
204
202
  # @return [Hash] Returns the value in the form of hash
205
203
  def _to_hash(value)
206
204
  if value.is_a?(Array)
207
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
208
206
  elsif value.is_a?(Hash)
209
207
  {}.tap do |hash|
210
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -217,5 +215,4 @@ module CloudmersiveImageRecognitionApiClient
217
215
  end
218
216
 
219
217
  end
220
-
221
218
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -27,7 +27,6 @@ module CloudmersiveImageRecognitionApiClient
27
27
  # Details of any errors that occurred
28
28
  attr_accessor :error_details
29
29
 
30
-
31
30
  # Attribute mapping from ruby-style variable name to JSON key.
32
31
  def self.attribute_map
33
32
  {
@@ -54,7 +53,7 @@ module CloudmersiveImageRecognitionApiClient
54
53
  return unless attributes.is_a?(Hash)
55
54
 
56
55
  # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
57
 
59
58
  if attributes.has_key?(:'Successful')
60
59
  self.successful = attributes[:'Successful']
@@ -73,20 +72,19 @@ module CloudmersiveImageRecognitionApiClient
73
72
  if attributes.has_key?(:'ErrorDetails')
74
73
  self.error_details = attributes[:'ErrorDetails']
75
74
  end
76
-
77
75
  end
78
76
 
79
77
  # Show invalid properties with the reasons. Usually used together with valid?
80
78
  # @return Array for valid properties with the reasons
81
79
  def list_invalid_properties
82
80
  invalid_properties = Array.new
83
- return invalid_properties
81
+ invalid_properties
84
82
  end
85
83
 
86
84
  # Check to see if the all the properties in the model are valid
87
85
  # @return true if the model is valid
88
86
  def valid?
89
- return true
87
+ true
90
88
  end
91
89
 
92
90
  # Checks equality by comparing each attribute.
@@ -119,10 +117,10 @@ module CloudmersiveImageRecognitionApiClient
119
117
  return nil unless attributes.is_a?(Hash)
120
118
  self.class.swagger_types.each_pair do |key, type|
121
119
  if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
120
+ # check to ensure the input is an array given that the attribute
123
121
  # is documented as an array but the input is not
124
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
124
  end
127
125
  elsif !attributes[self.class.attribute_map[key]].nil?
128
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -204,7 +202,7 @@ module CloudmersiveImageRecognitionApiClient
204
202
  # @return [Hash] Returns the value in the form of hash
205
203
  def _to_hash(value)
206
204
  if value.is_a?(Array)
207
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
208
206
  elsif value.is_a?(Hash)
209
207
  {}.tap do |hash|
210
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -217,5 +215,4 @@ module CloudmersiveImageRecognitionApiClient
217
215
  end
218
216
 
219
217
  end
220
-
221
218
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -27,7 +27,6 @@ module CloudmersiveImageRecognitionApiClient
27
27
  # Details of any errors that occurred
28
28
  attr_accessor :error_details
29
29
 
30
-
31
30
  # Attribute mapping from ruby-style variable name to JSON key.
32
31
  def self.attribute_map
33
32
  {
@@ -54,7 +53,7 @@ module CloudmersiveImageRecognitionApiClient
54
53
  return unless attributes.is_a?(Hash)
55
54
 
56
55
  # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
57
 
59
58
  if attributes.has_key?(:'Successful')
60
59
  self.successful = attributes[:'Successful']
@@ -73,20 +72,19 @@ module CloudmersiveImageRecognitionApiClient
73
72
  if attributes.has_key?(:'ErrorDetails')
74
73
  self.error_details = attributes[:'ErrorDetails']
75
74
  end
76
-
77
75
  end
78
76
 
79
77
  # Show invalid properties with the reasons. Usually used together with valid?
80
78
  # @return Array for valid properties with the reasons
81
79
  def list_invalid_properties
82
80
  invalid_properties = Array.new
83
- return invalid_properties
81
+ invalid_properties
84
82
  end
85
83
 
86
84
  # Check to see if the all the properties in the model are valid
87
85
  # @return true if the model is valid
88
86
  def valid?
89
- return true
87
+ true
90
88
  end
91
89
 
92
90
  # Checks equality by comparing each attribute.
@@ -119,10 +117,10 @@ module CloudmersiveImageRecognitionApiClient
119
117
  return nil unless attributes.is_a?(Hash)
120
118
  self.class.swagger_types.each_pair do |key, type|
121
119
  if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
120
+ # check to ensure the input is an array given that the attribute
123
121
  # is documented as an array but the input is not
124
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
124
  end
127
125
  elsif !attributes[self.class.attribute_map[key]].nil?
128
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -204,7 +202,7 @@ module CloudmersiveImageRecognitionApiClient
204
202
  # @return [Hash] Returns the value in the form of hash
205
203
  def _to_hash(value)
206
204
  if value.is_a?(Array)
207
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
208
206
  elsif value.is_a?(Hash)
209
207
  {}.tap do |hash|
210
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -217,5 +215,4 @@ module CloudmersiveImageRecognitionApiClient
217
215
  end
218
216
 
219
217
  end
220
-
221
218
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -33,7 +33,6 @@ module CloudmersiveImageRecognitionApiClient
33
33
  # Match score from 0.0 to 1.0 with higher scores indicating a greater match; scores above 0.7 indicate a match
34
34
  attr_accessor :match_score
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -64,7 +63,7 @@ module CloudmersiveImageRecognitionApiClient
64
63
  return unless attributes.is_a?(Hash)
65
64
 
66
65
  # convert string to symbol for hash key
67
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
67
 
69
68
  if attributes.has_key?(:'LeftX')
70
69
  self.left_x = attributes[:'LeftX']
@@ -89,20 +88,19 @@ module CloudmersiveImageRecognitionApiClient
89
88
  if attributes.has_key?(:'MatchScore')
90
89
  self.match_score = attributes[:'MatchScore']
91
90
  end
92
-
93
91
  end
94
92
 
95
93
  # Show invalid properties with the reasons. Usually used together with valid?
96
94
  # @return Array for valid properties with the reasons
97
95
  def list_invalid_properties
98
96
  invalid_properties = Array.new
99
- return invalid_properties
97
+ invalid_properties
100
98
  end
101
99
 
102
100
  # Check to see if the all the properties in the model are valid
103
101
  # @return true if the model is valid
104
102
  def valid?
105
- return true
103
+ true
106
104
  end
107
105
 
108
106
  # Checks equality by comparing each attribute.
@@ -137,10 +135,10 @@ module CloudmersiveImageRecognitionApiClient
137
135
  return nil unless attributes.is_a?(Hash)
138
136
  self.class.swagger_types.each_pair do |key, type|
139
137
  if type =~ /\AArray<(.*)>/i
140
- # check to ensure the input is an array given that the the attribute
138
+ # check to ensure the input is an array given that the attribute
141
139
  # is documented as an array but the input is not
142
140
  if attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
142
  end
145
143
  elsif !attributes[self.class.attribute_map[key]].nil?
146
144
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -222,7 +220,7 @@ module CloudmersiveImageRecognitionApiClient
222
220
  # @return [Hash] Returns the value in the form of hash
223
221
  def _to_hash(value)
224
222
  if value.is_a?(Array)
225
- value.compact.map{ |v| _to_hash(v) }
223
+ value.compact.map { |v| _to_hash(v) }
226
224
  elsif value.is_a?(Hash)
227
225
  {}.tap do |hash|
228
226
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -235,5 +233,4 @@ module CloudmersiveImageRecognitionApiClient
235
233
  end
236
234
 
237
235
  end
238
-
239
236
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,6 @@ module CloudmersiveImageRecognitionApiClient
21
21
  # Y location, where 0 is the top-most pixel
22
22
  attr_accessor :y
23
23
 
24
-
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
26
25
  def self.attribute_map
27
26
  {
@@ -44,7 +43,7 @@ module CloudmersiveImageRecognitionApiClient
44
43
  return unless attributes.is_a?(Hash)
45
44
 
46
45
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
48
  if attributes.has_key?(:'X')
50
49
  self.x = attributes[:'X']
@@ -53,20 +52,19 @@ module CloudmersiveImageRecognitionApiClient
53
52
  if attributes.has_key?(:'Y')
54
53
  self.y = attributes[:'Y']
55
54
  end
56
-
57
55
  end
58
56
 
59
57
  # Show invalid properties with the reasons. Usually used together with valid?
60
58
  # @return Array for valid properties with the reasons
61
59
  def list_invalid_properties
62
60
  invalid_properties = Array.new
63
- return invalid_properties
61
+ invalid_properties
64
62
  end
65
63
 
66
64
  # Check to see if the all the properties in the model are valid
67
65
  # @return true if the model is valid
68
66
  def valid?
69
- return true
67
+ true
70
68
  end
71
69
 
72
70
  # Checks equality by comparing each attribute.
@@ -97,10 +95,10 @@ module CloudmersiveImageRecognitionApiClient
97
95
  return nil unless attributes.is_a?(Hash)
98
96
  self.class.swagger_types.each_pair do |key, type|
99
97
  if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
98
+ # check to ensure the input is an array given that the attribute
101
99
  # is documented as an array but the input is not
102
100
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
102
  end
105
103
  elsif !attributes[self.class.attribute_map[key]].nil?
106
104
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +180,7 @@ module CloudmersiveImageRecognitionApiClient
182
180
  # @return [Hash] Returns the value in the form of hash
183
181
  def _to_hash(value)
184
182
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
183
+ value.compact.map { |v| _to_hash(v) }
186
184
  elsif value.is_a?(Hash)
187
185
  {}.tap do |hash|
188
186
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,5 +193,4 @@ module CloudmersiveImageRecognitionApiClient
195
193
  end
196
194
 
197
195
  end
198
-
199
196
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -54,7 +54,6 @@ module CloudmersiveImageRecognitionApiClient
54
54
  # Point locations of the outer outline of the lips
55
55
  attr_accessor :lips_outer_outline
56
56
 
57
-
58
57
  # Attribute mapping from ruby-style variable name to JSON key.
59
58
  def self.attribute_map
60
59
  {
@@ -99,7 +98,7 @@ module CloudmersiveImageRecognitionApiClient
99
98
  return unless attributes.is_a?(Hash)
100
99
 
101
100
  # convert string to symbol for hash key
102
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
101
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
103
102
 
104
103
  if attributes.has_key?(:'LeftX')
105
104
  self.left_x = attributes[:'LeftX']
@@ -170,20 +169,19 @@ module CloudmersiveImageRecognitionApiClient
170
169
  self.lips_outer_outline = value
171
170
  end
172
171
  end
173
-
174
172
  end
175
173
 
176
174
  # Show invalid properties with the reasons. Usually used together with valid?
177
175
  # @return Array for valid properties with the reasons
178
176
  def list_invalid_properties
179
177
  invalid_properties = Array.new
180
- return invalid_properties
178
+ invalid_properties
181
179
  end
182
180
 
183
181
  # Check to see if the all the properties in the model are valid
184
182
  # @return true if the model is valid
185
183
  def valid?
186
- return true
184
+ true
187
185
  end
188
186
 
189
187
  # Checks equality by comparing each attribute.
@@ -225,10 +223,10 @@ module CloudmersiveImageRecognitionApiClient
225
223
  return nil unless attributes.is_a?(Hash)
226
224
  self.class.swagger_types.each_pair do |key, type|
227
225
  if type =~ /\AArray<(.*)>/i
228
- # check to ensure the input is an array given that the the attribute
226
+ # check to ensure the input is an array given that the attribute
229
227
  # is documented as an array but the input is not
230
228
  if attributes[self.class.attribute_map[key]].is_a?(Array)
231
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
229
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
232
230
  end
233
231
  elsif !attributes[self.class.attribute_map[key]].nil?
234
232
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -310,7 +308,7 @@ module CloudmersiveImageRecognitionApiClient
310
308
  # @return [Hash] Returns the value in the form of hash
311
309
  def _to_hash(value)
312
310
  if value.is_a?(Array)
313
- value.compact.map{ |v| _to_hash(v) }
311
+ value.compact.map { |v| _to_hash(v) }
314
312
  elsif value.is_a?(Hash)
315
313
  {}.tap do |hash|
316
314
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -323,5 +321,4 @@ module CloudmersiveImageRecognitionApiClient
323
321
  end
324
322
 
325
323
  end
326
-
327
324
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -33,7 +33,6 @@ module CloudmersiveImageRecognitionApiClient
33
33
  # Height of the found location in pixels
34
34
  attr_accessor :height
35
35
 
36
-
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
@@ -64,7 +63,7 @@ module CloudmersiveImageRecognitionApiClient
64
63
  return unless attributes.is_a?(Hash)
65
64
 
66
65
  # convert string to symbol for hash key
67
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
67
 
69
68
  if attributes.has_key?(:'Successful')
70
69
  self.successful = attributes[:'Successful']
@@ -89,20 +88,19 @@ module CloudmersiveImageRecognitionApiClient
89
88
  if attributes.has_key?(:'Height')
90
89
  self.height = attributes[:'Height']
91
90
  end
92
-
93
91
  end
94
92
 
95
93
  # Show invalid properties with the reasons. Usually used together with valid?
96
94
  # @return Array for valid properties with the reasons
97
95
  def list_invalid_properties
98
96
  invalid_properties = Array.new
99
- return invalid_properties
97
+ invalid_properties
100
98
  end
101
99
 
102
100
  # Check to see if the all the properties in the model are valid
103
101
  # @return true if the model is valid
104
102
  def valid?
105
- return true
103
+ true
106
104
  end
107
105
 
108
106
  # Checks equality by comparing each attribute.
@@ -137,10 +135,10 @@ module CloudmersiveImageRecognitionApiClient
137
135
  return nil unless attributes.is_a?(Hash)
138
136
  self.class.swagger_types.each_pair do |key, type|
139
137
  if type =~ /\AArray<(.*)>/i
140
- # check to ensure the input is an array given that the the attribute
138
+ # check to ensure the input is an array given that the attribute
141
139
  # is documented as an array but the input is not
142
140
  if attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
142
  end
145
143
  elsif !attributes[self.class.attribute_map[key]].nil?
146
144
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -222,7 +220,7 @@ module CloudmersiveImageRecognitionApiClient
222
220
  # @return [Hash] Returns the value in the form of hash
223
221
  def _to_hash(value)
224
222
  if value.is_a?(Array)
225
- value.compact.map{ |v| _to_hash(v) }
223
+ value.compact.map { |v| _to_hash(v) }
226
224
  elsif value.is_a?(Hash)
227
225
  {}.tap do |hash|
228
226
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -235,5 +233,4 @@ module CloudmersiveImageRecognitionApiClient
235
233
  end
236
234
 
237
235
  end
238
-
239
236
  end