lib/atrium-ruby/models/challenge.rb in atrium-ruby-2.8.2 vs lib/atrium-ruby/models/challenge.rb in atrium-ruby-2.8.3
- old
+ new
@@ -14,10 +14,12 @@
attr_accessor :guid
attr_accessor :image_data
+ attr_accessor :image_options
+
attr_accessor :label
attr_accessor :options
attr_accessor :type
@@ -26,10 +28,11 @@
def self.attribute_map
{
:'field_name' => :'field_name',
:'guid' => :'guid',
:'image_data' => :'image_data',
+ :'image_options' => :'image_options',
:'label' => :'label',
:'options' => :'options',
:'type' => :'type'
}
end
@@ -38,10 +41,11 @@
def self.mx_types
{
:'field_name' => :'String',
:'guid' => :'String',
:'image_data' => :'String',
+ :'image_options' => :'Array<ChallengeImageOption>',
:'label' => :'String',
:'options' => :'Array<ChallengeOption>',
:'type' => :'String'
}
end
@@ -64,10 +68,16 @@
if attributes.has_key?(:'image_data')
self.image_data = attributes[:'image_data']
end
+ if attributes.has_key?(:'image_options')
+ if (value = attributes[:'image_options']).is_a?(Array)
+ self.image_options = value
+ end
+ end
+
if attributes.has_key?(:'label')
self.label = attributes[:'label']
end
if attributes.has_key?(:'options')
@@ -100,10 +110,11 @@
return true if self.equal?(o)
self.class == o.class &&
field_name == o.field_name &&
guid == o.guid &&
image_data == o.image_data &&
+ image_options == o.image_options &&
label == o.label &&
options == o.options &&
type == o.type
end
@@ -114,10 +125,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [field_name, guid, image_data, label, options, type].hash
+ [field_name, guid, image_data, image_options, label, options, type].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself