rustici_software_cloud_v2 1.0.2 → 1.1.0

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 (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/rustici_software_cloud_v2.rb +1 -0
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
  18. data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
  24. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
  25. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
  26. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
  27. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
  28. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
  29. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
  30. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
  31. data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
  32. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
  35. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
  36. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
  37. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
  38. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
  39. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
  40. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
  41. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
  42. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
  43. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
  44. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
  45. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
  46. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
  47. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
  48. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
  49. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
  50. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
  51. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
  52. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
  53. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
  54. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
  55. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
  57. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
  58. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
  59. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
  60. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
  61. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
  62. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
  63. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
  64. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
  65. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
  66. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
  67. data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
  68. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
  69. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
  70. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
  71. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
  72. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
  73. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
  74. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
  75. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
  76. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
  77. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
  78. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
  79. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
  80. data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
  81. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
  82. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
  83. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
  84. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
  85. data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
  86. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
  87. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
  88. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
  89. data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
  90. data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
  91. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
  92. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
  93. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
  94. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
  95. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
  96. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
  97. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
  98. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
  99. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
  100. data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
  101. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
  102. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
  103. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
  104. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
  105. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
  106. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
  108. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
  109. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
  110. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
  111. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
  112. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
  114. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
  115. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
  116. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
  117. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
  118. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
  119. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
  120. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
  121. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
  122. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
  125. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
  126. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
  127. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
  128. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
  129. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
  130. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
  131. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
  132. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
  133. data/lib/rustici_software_cloud_v2/version.rb +2 -1
  134. data/rustici_software_cloud_v2.gemspec +8 -7
  135. data/spec/api_client_spec.rb +35 -34
  136. data/spec/configuration_spec.rb +9 -8
  137. data/spec/spec_helper.rb +1 -0
  138. metadata +16 -16
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class CourseActivitySchema
17
17
  # An arbitrary identifier that the external LMS system can associate with this LearningObject to track it as it isreused across courses
18
18
  attr_accessor :external_identifier
@@ -93,7 +93,7 @@ module RusticiSoftwareCloudV2
93
93
  return unless attributes.is_a?(Hash)
94
94
 
95
95
  # convert string to symbol for hash key
96
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
96
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
97
97
 
98
98
  if attributes.has_key?(:'externalIdentifier')
99
99
  self.external_identifier = attributes[:'externalIdentifier']
@@ -128,30 +128,29 @@ module RusticiSoftwareCloudV2
128
128
  self.children = value
129
129
  end
130
130
  end
131
-
132
131
  end
133
132
 
134
133
  # Show invalid properties with the reasons. Usually used together with valid?
135
- # @return Array for valid properies with the reasons
134
+ # @return Array for valid properties with the reasons
136
135
  def list_invalid_properties
137
136
  invalid_properties = Array.new
138
- return invalid_properties
137
+ invalid_properties
139
138
  end
140
139
 
141
140
  # Check to see if the all the properties in the model are valid
142
141
  # @return true if the model is valid
143
142
  def valid?
144
- activity_type_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "AGGREGATION", "SCO", "ASSET", "OBJECTIVE"])
143
+ activity_type_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'AGGREGATION', 'SCO', 'ASSET', 'OBJECTIVE'])
145
144
  return false unless activity_type_validator.valid?(@activity_type)
146
- return true
145
+ true
147
146
  end
148
147
 
149
148
  # Custom attribute writer method checking allowed values (enum).
150
149
  # @param [Object] activity_type Object to be assigned
151
150
  def activity_type=(activity_type)
152
- validator = EnumAttributeValidator.new('String', ["UNKNOWN", "AGGREGATION", "SCO", "ASSET", "OBJECTIVE"])
151
+ validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'AGGREGATION', 'SCO', 'ASSET', 'OBJECTIVE'])
153
152
  unless validator.valid?(activity_type)
154
- fail ArgumentError, "invalid value for 'activity_type', must be one of #{validator.allowable_values}."
153
+ fail ArgumentError, 'invalid value for "activity_type", must be one of #{validator.allowable_values}.'
155
154
  end
156
155
  @activity_type = activity_type
157
156
  end
@@ -193,7 +192,7 @@ module RusticiSoftwareCloudV2
193
192
  # check to ensure the input is an array given that the the attribute
194
193
  # is documented as an array but the input is not
195
194
  if attributes[self.class.attribute_map[key]].is_a?(Array)
196
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
195
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
197
196
  end
198
197
  elsif !attributes[self.class.attribute_map[key]].nil?
199
198
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -275,7 +274,7 @@ module RusticiSoftwareCloudV2
275
274
  # @return [Hash] Returns the value in the form of hash
276
275
  def _to_hash(value)
277
276
  if value.is_a?(Array)
278
- value.compact.map{ |v| _to_hash(v) }
277
+ value.compact.map { |v| _to_hash(v) }
279
278
  elsif value.is_a?(Hash)
280
279
  {}.tap do |hash|
281
280
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -286,7 +285,5 @@ module RusticiSoftwareCloudV2
286
285
  value
287
286
  end
288
287
  end
289
-
290
288
  end
291
-
292
289
  end
@@ -6,17 +6,16 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class CourseListNonPagedSchema
17
17
  attr_accessor :courses
18
18
 
19
-
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
@@ -37,27 +36,26 @@ module RusticiSoftwareCloudV2
37
36
  return unless attributes.is_a?(Hash)
38
37
 
39
38
  # convert string to symbol for hash key
40
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
40
 
42
41
  if attributes.has_key?(:'courses')
43
42
  if (value = attributes[:'courses']).is_a?(Array)
44
43
  self.courses = value
45
44
  end
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
- # @return Array for valid properies with the reasons
49
+ # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -90,7 +88,7 @@ module RusticiSoftwareCloudV2
90
88
  # check to ensure the input is an array given that the the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module RusticiSoftwareCloudV2
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -183,7 +181,5 @@ module RusticiSoftwareCloudV2
183
181
  value
184
182
  end
185
183
  end
186
-
187
184
  end
188
-
189
185
  end
@@ -6,19 +6,18 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class CourseListSchema
17
17
  attr_accessor :courses
18
18
 
19
19
  attr_accessor :more
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
41
40
  return unless attributes.is_a?(Hash)
42
41
 
43
42
  # convert string to symbol for hash key
44
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
44
 
46
45
  if attributes.has_key?(:'courses')
47
46
  if (value = attributes[:'courses']).is_a?(Array)
@@ -52,20 +51,19 @@ module RusticiSoftwareCloudV2
52
51
  if attributes.has_key?(:'more')
53
52
  self.more = attributes[:'more']
54
53
  end
55
-
56
54
  end
57
55
 
58
56
  # Show invalid properties with the reasons. Usually used together with valid?
59
- # @return Array for valid properies with the reasons
57
+ # @return Array for valid properties with the reasons
60
58
  def list_invalid_properties
61
59
  invalid_properties = Array.new
62
- return invalid_properties
60
+ invalid_properties
63
61
  end
64
62
 
65
63
  # Check to see if the all the properties in the model are valid
66
64
  # @return true if the model is valid
67
65
  def valid?
68
- return true
66
+ true
69
67
  end
70
68
 
71
69
  # Checks equality by comparing each attribute.
@@ -99,7 +97,7 @@ module RusticiSoftwareCloudV2
99
97
  # check to ensure the input is an array given that the the attribute
100
98
  # is documented as an array but the input is not
101
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
102
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
103
101
  end
104
102
  elsif !attributes[self.class.attribute_map[key]].nil?
105
103
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -181,7 +179,7 @@ module RusticiSoftwareCloudV2
181
179
  # @return [Hash] Returns the value in the form of hash
182
180
  def _to_hash(value)
183
181
  if value.is_a?(Array)
184
- value.compact.map{ |v| _to_hash(v) }
182
+ value.compact.map { |v| _to_hash(v) }
185
183
  elsif value.is_a?(Hash)
186
184
  {}.tap do |hash|
187
185
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -192,7 +190,5 @@ module RusticiSoftwareCloudV2
192
190
  value
193
191
  end
194
192
  end
195
-
196
193
  end
197
-
198
194
  end
@@ -6,6 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
@@ -20,7 +21,6 @@ module RusticiSoftwareCloudV2
20
21
 
21
22
  attr_accessor :version
22
23
 
23
-
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
@@ -45,7 +45,7 @@ module RusticiSoftwareCloudV2
45
45
  return unless attributes.is_a?(Hash)
46
46
 
47
47
  # convert string to symbol for hash key
48
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
49
49
 
50
50
  if attributes.has_key?(:'id')
51
51
  self.id = attributes[:'id']
@@ -58,20 +58,19 @@ module RusticiSoftwareCloudV2
58
58
  if attributes.has_key?(:'version')
59
59
  self.version = attributes[:'version']
60
60
  end
61
-
62
61
  end
63
62
 
64
63
  # Show invalid properties with the reasons. Usually used together with valid?
65
- # @return Array for valid properies with the reasons
64
+ # @return Array for valid properties with the reasons
66
65
  def list_invalid_properties
67
66
  invalid_properties = Array.new
68
- return invalid_properties
67
+ invalid_properties
69
68
  end
70
69
 
71
70
  # Check to see if the all the properties in the model are valid
72
71
  # @return true if the model is valid
73
72
  def valid?
74
- return true
73
+ true
75
74
  end
76
75
 
77
76
  # Checks equality by comparing each attribute.
@@ -106,7 +105,7 @@ module RusticiSoftwareCloudV2
106
105
  # check to ensure the input is an array given that the the attribute
107
106
  # is documented as an array but the input is not
108
107
  if attributes[self.class.attribute_map[key]].is_a?(Array)
109
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
108
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
109
  end
111
110
  elsif !attributes[self.class.attribute_map[key]].nil?
112
111
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -188,7 +187,7 @@ module RusticiSoftwareCloudV2
188
187
  # @return [Hash] Returns the value in the form of hash
189
188
  def _to_hash(value)
190
189
  if value.is_a?(Array)
191
- value.compact.map{ |v| _to_hash(v) }
190
+ value.compact.map { |v| _to_hash(v) }
192
191
  elsif value.is_a?(Hash)
193
192
  {}.tap do |hash|
194
193
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -199,7 +198,5 @@ module RusticiSoftwareCloudV2
199
198
  value
200
199
  end
201
200
  end
202
-
203
201
  end
204
-
205
202
  end
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class CourseSchema
17
17
  attr_accessor :id
18
18
 
@@ -107,7 +107,7 @@ module RusticiSoftwareCloudV2
107
107
  return unless attributes.is_a?(Hash)
108
108
 
109
109
  # convert string to symbol for hash key
110
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
110
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
111
111
 
112
112
  if attributes.has_key?(:'id')
113
113
  self.id = attributes[:'id']
@@ -162,30 +162,29 @@ module RusticiSoftwareCloudV2
162
162
  if attributes.has_key?(:'rootActivity')
163
163
  self.root_activity = attributes[:'rootActivity']
164
164
  end
165
-
166
165
  end
167
166
 
168
167
  # Show invalid properties with the reasons. Usually used together with valid?
169
- # @return Array for valid properies with the reasons
168
+ # @return Array for valid properties with the reasons
170
169
  def list_invalid_properties
171
170
  invalid_properties = Array.new
172
- return invalid_properties
171
+ invalid_properties
173
172
  end
174
173
 
175
174
  # Check to see if the all the properties in the model are valid
176
175
  # @return true if the model is valid
177
176
  def valid?
178
- course_learning_standard_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "SCORM11", "SCORM12", "SCORM20042NDEDITION", "SCORM20043RDEDITION", "SCORM20044THEDITION", "AICC", "XAPI", "CMI5"])
177
+ course_learning_standard_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'SCORM11', 'SCORM12', 'SCORM20042NDEDITION', 'SCORM20043RDEDITION', 'SCORM20044THEDITION', 'AICC', 'XAPI', 'CMI5'])
179
178
  return false unless course_learning_standard_validator.valid?(@course_learning_standard)
180
- return true
179
+ true
181
180
  end
182
181
 
183
182
  # Custom attribute writer method checking allowed values (enum).
184
183
  # @param [Object] course_learning_standard Object to be assigned
185
184
  def course_learning_standard=(course_learning_standard)
186
- validator = EnumAttributeValidator.new('String', ["UNKNOWN", "SCORM11", "SCORM12", "SCORM20042NDEDITION", "SCORM20043RDEDITION", "SCORM20044THEDITION", "AICC", "XAPI", "CMI5"])
185
+ validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'SCORM11', 'SCORM12', 'SCORM20042NDEDITION', 'SCORM20043RDEDITION', 'SCORM20044THEDITION', 'AICC', 'XAPI', 'CMI5'])
187
186
  unless validator.valid?(course_learning_standard)
188
- fail ArgumentError, "invalid value for 'course_learning_standard', must be one of #{validator.allowable_values}."
187
+ fail ArgumentError, 'invalid value for "course_learning_standard", must be one of #{validator.allowable_values}.'
189
188
  end
190
189
  @course_learning_standard = course_learning_standard
191
190
  end
@@ -232,7 +231,7 @@ module RusticiSoftwareCloudV2
232
231
  # check to ensure the input is an array given that the the attribute
233
232
  # is documented as an array but the input is not
234
233
  if attributes[self.class.attribute_map[key]].is_a?(Array)
235
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
234
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
236
235
  end
237
236
  elsif !attributes[self.class.attribute_map[key]].nil?
238
237
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -314,7 +313,7 @@ module RusticiSoftwareCloudV2
314
313
  # @return [Hash] Returns the value in the form of hash
315
314
  def _to_hash(value)
316
315
  if value.is_a?(Array)
317
- value.compact.map{ |v| _to_hash(v) }
316
+ value.compact.map { |v| _to_hash(v) }
318
317
  elsif value.is_a?(Hash)
319
318
  {}.tap do |hash|
320
319
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -325,7 +324,5 @@ module RusticiSoftwareCloudV2
325
324
  value
326
325
  end
327
326
  end
328
-
329
327
  end
330
-
331
328
  end
@@ -6,19 +6,18 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class CreateDispatchIdSchema
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :data
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
41
40
  return unless attributes.is_a?(Hash)
42
41
 
43
42
  # convert string to symbol for hash key
44
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
44
 
46
45
  if attributes.has_key?(:'id')
47
46
  self.id = attributes[:'id']
@@ -50,26 +49,25 @@ module RusticiSoftwareCloudV2
50
49
  if attributes.has_key?(:'data')
51
50
  self.data = attributes[:'data']
52
51
  end
53
-
54
52
  end
55
53
 
56
54
  # Show invalid properties with the reasons. Usually used together with valid?
57
- # @return Array for valid properies with the reasons
55
+ # @return Array for valid properties with the reasons
58
56
  def list_invalid_properties
59
57
  invalid_properties = Array.new
60
58
  if @id.nil?
61
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
59
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
62
60
  end
63
61
 
64
62
  if @id.to_s.length < 9
65
- invalid_properties.push("invalid value for 'id', the character length must be great than or equal to 9.")
63
+ invalid_properties.push('invalid value for "id", the character length must be great than or equal to 9.')
66
64
  end
67
65
 
68
66
  if @data.nil?
69
- invalid_properties.push("invalid value for 'data', data cannot be nil.")
67
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
70
68
  end
71
69
 
72
- return invalid_properties
70
+ invalid_properties
73
71
  end
74
72
 
75
73
  # Check to see if the all the properties in the model are valid
@@ -78,18 +76,18 @@ module RusticiSoftwareCloudV2
78
76
  return false if @id.nil?
79
77
  return false if @id.to_s.length < 9
80
78
  return false if @data.nil?
81
- return true
79
+ true
82
80
  end
83
81
 
84
82
  # Custom attribute writer method with validation
85
83
  # @param [Object] id Value to be assigned
86
84
  def id=(id)
87
85
  if id.nil?
88
- fail ArgumentError, "id cannot be nil"
86
+ fail ArgumentError, 'id cannot be nil'
89
87
  end
90
88
 
91
89
  if id.to_s.length < 9
92
- fail ArgumentError, "invalid value for 'id', the character length must be great than or equal to 9."
90
+ fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 9.'
93
91
  end
94
92
 
95
93
  @id = id
@@ -126,7 +124,7 @@ module RusticiSoftwareCloudV2
126
124
  # check to ensure the input is an array given that the the attribute
127
125
  # is documented as an array but the input is not
128
126
  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) } )
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
128
  end
131
129
  elsif !attributes[self.class.attribute_map[key]].nil?
132
130
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -208,7 +206,7 @@ module RusticiSoftwareCloudV2
208
206
  # @return [Hash] Returns the value in the form of hash
209
207
  def _to_hash(value)
210
208
  if value.is_a?(Array)
211
- value.compact.map{ |v| _to_hash(v) }
209
+ value.compact.map { |v| _to_hash(v) }
212
210
  elsif value.is_a?(Hash)
213
211
  {}.tap do |hash|
214
212
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -219,7 +217,5 @@ module RusticiSoftwareCloudV2
219
217
  value
220
218
  end
221
219
  end
222
-
223
220
  end
224
-
225
221
  end