Class: EdmentumClient::EdApiModelsLearningPathProgressRow
- Inherits:
-
Object
- Object
- EdmentumClient::EdApiModelsLearningPathProgressRow
- Defined in:
- lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb
Instance Attribute Summary collapse
-
#activities_completed ⇒ Object
Returns the value of attribute activities_completed.
-
#grade ⇒ Object
Returns the value of attribute grade.
-
#last_use_date_language_arts ⇒ Object
Returns the value of attribute last_use_date_language_arts.
-
#last_use_date_mathematics ⇒ Object
Returns the value of attribute last_use_date_mathematics.
-
#last_use_date_reading ⇒ Object
Returns the value of attribute last_use_date_reading.
-
#skills_attempted ⇒ Object
Returns the value of attribute skills_attempted.
-
#skills_mastered_first_attempt ⇒ Object
Returns the value of attribute skills_mastered_first_attempt.
-
#skills_mastered_second_attempt ⇒ Object
Returns the value of attribute skills_mastered_second_attempt.
-
#skills_not_mastered ⇒ Object
Returns the value of attribute skills_not_mastered.
-
#student_classes ⇒ Object
Returns the value of attribute student_classes.
-
#student_information_system_id ⇒ Object
Returns the value of attribute student_information_system_id.
-
#student_location ⇒ Object
Returns the value of attribute student_location.
-
#student_name ⇒ Object
Returns the value of attribute student_name.
-
#time_on_task_learning_path_content_with_progress_check ⇒ Object
Returns the value of attribute time_on_task_learning_path_content_with_progress_check.
-
#time_on_task_learning_path_content_with_progress_check_as_string ⇒ Object
Returns the value of attribute time_on_task_learning_path_content_with_progress_check_as_string.
-
#total_system_time ⇒ Object
Returns the value of attribute total_system_time.
-
#total_system_time_as_string ⇒ Object
Returns the value of attribute total_system_time_as_string.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ EdApiModelsLearningPathProgressRow
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ EdApiModelsLearningPathProgressRow
Initializes the object
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 99 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'ActivitiesCompleted') self.activities_completed = attributes[:'ActivitiesCompleted'] end if attributes.has_key?(:'Grade') self.grade = attributes[:'Grade'] end if attributes.has_key?(:'SkillsAttempted') self.skills_attempted = attributes[:'SkillsAttempted'] end if attributes.has_key?(:'SkillsMasteredFirstAttempt') self.skills_mastered_first_attempt = attributes[:'SkillsMasteredFirstAttempt'] end if attributes.has_key?(:'SkillsMasteredSecondAttempt') self.skills_mastered_second_attempt = attributes[:'SkillsMasteredSecondAttempt'] end if attributes.has_key?(:'SkillsNotMastered') self.skills_not_mastered = attributes[:'SkillsNotMastered'] end if attributes.has_key?(:'StudentInformationSystemId') self.student_information_system_id = attributes[:'StudentInformationSystemId'] end if attributes.has_key?(:'StudentLocation') self.student_location = attributes[:'StudentLocation'] end if attributes.has_key?(:'StudentName') self.student_name = attributes[:'StudentName'] end if attributes.has_key?(:'StudentClasses') self.student_classes = attributes[:'StudentClasses'] end if attributes.has_key?(:'TimeOnTaskLearningPathContentWithProgressCheck') self.time_on_task_learning_path_content_with_progress_check = attributes[:'TimeOnTaskLearningPathContentWithProgressCheck'] end if attributes.has_key?(:'TimeOnTaskLearningPathContentWithProgressCheckAsString') self.time_on_task_learning_path_content_with_progress_check_as_string = attributes[:'TimeOnTaskLearningPathContentWithProgressCheckAsString'] end if attributes.has_key?(:'TotalSystemTime') self.total_system_time = attributes[:'TotalSystemTime'] end if attributes.has_key?(:'TotalSystemTimeAsString') self.total_system_time_as_string = attributes[:'TotalSystemTimeAsString'] end if attributes.has_key?(:'LastUseDate_LanguageArts') self.last_use_date_language_arts = attributes[:'LastUseDate_LanguageArts'] end if attributes.has_key?(:'LastUseDate_Mathematics') self.last_use_date_mathematics = attributes[:'LastUseDate_Mathematics'] end if attributes.has_key?(:'LastUseDate_Reading') self.last_use_date_reading = attributes[:'LastUseDate_Reading'] end end |
Instance Attribute Details
#activities_completed ⇒ Object
Returns the value of attribute activities_completed.
17 18 19 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 17 def activities_completed @activities_completed end |
#grade ⇒ Object
Returns the value of attribute grade.
19 20 21 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 19 def grade @grade end |
#last_use_date_language_arts ⇒ Object
Returns the value of attribute last_use_date_language_arts.
45 46 47 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 45 def last_use_date_language_arts @last_use_date_language_arts end |
#last_use_date_mathematics ⇒ Object
Returns the value of attribute last_use_date_mathematics.
47 48 49 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 47 def last_use_date_mathematics @last_use_date_mathematics end |
#last_use_date_reading ⇒ Object
Returns the value of attribute last_use_date_reading.
49 50 51 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 49 def last_use_date_reading @last_use_date_reading end |
#skills_attempted ⇒ Object
Returns the value of attribute skills_attempted.
21 22 23 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 21 def skills_attempted @skills_attempted end |
#skills_mastered_first_attempt ⇒ Object
Returns the value of attribute skills_mastered_first_attempt.
23 24 25 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 23 def skills_mastered_first_attempt @skills_mastered_first_attempt end |
#skills_mastered_second_attempt ⇒ Object
Returns the value of attribute skills_mastered_second_attempt.
25 26 27 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 25 def skills_mastered_second_attempt @skills_mastered_second_attempt end |
#skills_not_mastered ⇒ Object
Returns the value of attribute skills_not_mastered.
27 28 29 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 27 def skills_not_mastered @skills_not_mastered end |
#student_classes ⇒ Object
Returns the value of attribute student_classes.
35 36 37 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 35 def student_classes @student_classes end |
#student_information_system_id ⇒ Object
Returns the value of attribute student_information_system_id.
29 30 31 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 29 def student_information_system_id @student_information_system_id end |
#student_location ⇒ Object
Returns the value of attribute student_location.
31 32 33 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 31 def student_location @student_location end |
#student_name ⇒ Object
Returns the value of attribute student_name.
33 34 35 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 33 def student_name @student_name end |
#time_on_task_learning_path_content_with_progress_check ⇒ Object
Returns the value of attribute time_on_task_learning_path_content_with_progress_check.
37 38 39 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 37 def time_on_task_learning_path_content_with_progress_check @time_on_task_learning_path_content_with_progress_check end |
#time_on_task_learning_path_content_with_progress_check_as_string ⇒ Object
Returns the value of attribute time_on_task_learning_path_content_with_progress_check_as_string.
39 40 41 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 39 def time_on_task_learning_path_content_with_progress_check_as_string @time_on_task_learning_path_content_with_progress_check_as_string end |
#total_system_time ⇒ Object
Returns the value of attribute total_system_time.
41 42 43 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 41 def total_system_time @total_system_time end |
#total_system_time_as_string ⇒ Object
Returns the value of attribute total_system_time_as_string.
43 44 45 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 43 def total_system_time_as_string @total_system_time_as_string end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 52 def self.attribute_map { :'activities_completed' => :'ActivitiesCompleted', :'grade' => :'Grade', :'skills_attempted' => :'SkillsAttempted', :'skills_mastered_first_attempt' => :'SkillsMasteredFirstAttempt', :'skills_mastered_second_attempt' => :'SkillsMasteredSecondAttempt', :'skills_not_mastered' => :'SkillsNotMastered', :'student_information_system_id' => :'StudentInformationSystemId', :'student_location' => :'StudentLocation', :'student_name' => :'StudentName', :'student_classes' => :'StudentClasses', :'time_on_task_learning_path_content_with_progress_check' => :'TimeOnTaskLearningPathContentWithProgressCheck', :'time_on_task_learning_path_content_with_progress_check_as_string' => :'TimeOnTaskLearningPathContentWithProgressCheckAsString', :'total_system_time' => :'TotalSystemTime', :'total_system_time_as_string' => :'TotalSystemTimeAsString', :'last_use_date_language_arts' => :'LastUseDate_LanguageArts', :'last_use_date_mathematics' => :'LastUseDate_Mathematics', :'last_use_date_reading' => :'LastUseDate_Reading' } end |
.swagger_types ⇒ Object
Attribute type mapping.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 75 def self.swagger_types { :'activities_completed' => :'Integer', :'grade' => :'String', :'skills_attempted' => :'Integer', :'skills_mastered_first_attempt' => :'Integer', :'skills_mastered_second_attempt' => :'Integer', :'skills_not_mastered' => :'Integer', :'student_information_system_id' => :'String', :'student_location' => :'String', :'student_name' => :'String', :'student_classes' => :'String', :'time_on_task_learning_path_content_with_progress_check' => :'String', :'time_on_task_learning_path_content_with_progress_check_as_string' => :'String', :'total_system_time' => :'String', :'total_system_time_as_string' => :'String', :'last_use_date_language_arts' => :'DateTime', :'last_use_date_mathematics' => :'DateTime', :'last_use_date_reading' => :'DateTime' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 189 def ==(o) return true if self.equal?(o) self.class == o.class && activities_completed == o.activities_completed && grade == o.grade && skills_attempted == o.skills_attempted && skills_mastered_first_attempt == o.skills_mastered_first_attempt && skills_mastered_second_attempt == o.skills_mastered_second_attempt && skills_not_mastered == o.skills_not_mastered && student_information_system_id == o.student_information_system_id && student_location == o.student_location && student_name == o.student_name && student_classes == o.student_classes && time_on_task_learning_path_content_with_progress_check == o.time_on_task_learning_path_content_with_progress_check && time_on_task_learning_path_content_with_progress_check_as_string == o.time_on_task_learning_path_content_with_progress_check_as_string && total_system_time == o.total_system_time && total_system_time_as_string == o.total_system_time_as_string && last_use_date_language_arts == o.last_use_date_language_arts && last_use_date_mathematics == o.last_use_date_mathematics && last_use_date_reading == o.last_use_date_reading end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 247 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = EdmentumClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
313 314 315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 313 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 226 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
213 214 215 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 213 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
219 220 221 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 219 def hash [activities_completed, grade, skills_attempted, skills_mastered_first_attempt, skills_mastered_second_attempt, skills_not_mastered, student_information_system_id, student_location, student_name, student_classes, time_on_task_learning_path_content_with_progress_check, time_on_task_learning_path_content_with_progress_check_as_string, total_system_time, total_system_time_as_string, last_use_date_language_arts, last_use_date_mathematics, last_use_date_reading].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
176 177 178 179 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 176 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
293 294 295 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 293 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
299 300 301 302 303 304 305 306 307 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 299 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
287 288 289 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 287 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
183 184 185 |
# File 'lib/edmentum_client/models/ed_api_models_learning_path_progress_row.rb', line 183 def valid? true end |