lib/phrase/models/screenshot_update_parameters.rb in phrase-1.0.13 vs lib/phrase/models/screenshot_update_parameters.rb in phrase-1.0.14
- old
+ new
@@ -1,9 +1,12 @@
require 'date'
module Phrase
class ScreenshotUpdateParameters
+ # specify the branch to use
+ attr_accessor :branch
+
# Name of the screenshot
attr_accessor :name
# Description of the screenshot
attr_accessor :description
@@ -12,19 +15,21 @@
attr_accessor :filename
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+ :'branch' => :'branch',
:'name' => :'name',
:'description' => :'description',
:'filename' => :'filename'
}
end
# Attribute type mapping.
def self.openapi_types
{
+ :'branch' => :'String',
:'name' => :'String',
:'description' => :'String',
:'filename' => :'File'
}
end
@@ -48,10 +53,14 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::ScreenshotUpdateParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
+ if attributes.key?(:'branch')
+ self.branch = attributes[:'branch']
+ end
+
if attributes.key?(:'name')
self.name = attributes[:'name']
end
if attributes.key?(:'description')
@@ -79,10 +88,11 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
+ branch == o.branch &&
name == o.name &&
description == o.description &&
filename == o.filename
end
@@ -93,10 +103,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, description, filename].hash
+ [branch, name, description, filename].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself