lib/phrase/models/release_preview.rb in phrase-2.9.0 vs lib/phrase/models/release_preview.rb in phrase-2.10.0
- old
+ new
@@ -16,10 +16,12 @@
attr_accessor :environments
attr_accessor :locale_codes
+ attr_accessor :tags
+
attr_accessor :project
attr_accessor :created_at
attr_accessor :updated_at
@@ -33,10 +35,11 @@
:'app_max_version' => :'app_max_version',
:'description' => :'description',
:'platforms' => :'platforms',
:'environments' => :'environments',
:'locale_codes' => :'locale_codes',
+ :'tags' => :'tags',
:'project' => :'project',
:'created_at' => :'created_at',
:'updated_at' => :'updated_at'
}
end
@@ -50,10 +53,11 @@
:'app_max_version' => :'String',
:'description' => :'String',
:'platforms' => :'Array<String>',
:'environments' => :'Array<String>',
:'locale_codes' => :'Array<String>',
+ :'tags' => :'Array<String>',
:'project' => :'ProjectShort',
:'created_at' => :'DateTime',
:'updated_at' => :'DateTime'
}
end
@@ -115,10 +119,16 @@
if (value = attributes[:'locale_codes']).is_a?(Array)
self.locale_codes = value
end
end
+ if attributes.key?(:'tags')
+ if (value = attributes[:'tags']).is_a?(Array)
+ self.tags = value
+ end
+ end
+
if attributes.key?(:'project')
self.project = attributes[:'project']
end
if attributes.key?(:'created_at')
@@ -154,10 +164,11 @@
app_max_version == o.app_max_version &&
description == o.description &&
platforms == o.platforms &&
environments == o.environments &&
locale_codes == o.locale_codes &&
+ tags == o.tags &&
project == o.project &&
created_at == o.created_at &&
updated_at == o.updated_at
end
@@ -168,10 +179,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, version, app_min_version, app_max_version, description, platforms, environments, locale_codes, project, created_at, updated_at].hash
+ [id, version, app_min_version, app_max_version, description, platforms, environments, locale_codes, tags, project, created_at, updated_at].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself