lib/phrase/models/job.rb in phrase-1.0.8 vs lib/phrase/models/job.rb in phrase-1.0.9
- old
+ new
@@ -12,28 +12,31 @@
attr_accessor :state
attr_accessor :ticket_url
+ attr_accessor :project
+
+ attr_accessor :branch
+
attr_accessor :created_at
attr_accessor :updated_at
- attr_accessor :project
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'name' => :'name',
:'briefing' => :'briefing',
:'due_date' => :'due_date',
:'state' => :'state',
:'ticket_url' => :'ticket_url',
+ :'project' => :'project',
+ :'branch' => :'branch',
:'created_at' => :'created_at',
- :'updated_at' => :'updated_at',
- :'project' => :'project'
+ :'updated_at' => :'updated_at'
}
end
# Attribute type mapping.
def self.openapi_types
@@ -42,13 +45,14 @@
:'name' => :'String',
:'briefing' => :'String',
:'due_date' => :'DateTime',
:'state' => :'String',
:'ticket_url' => :'String',
+ :'project' => :'ProjectShort',
+ :'branch' => :'BranchName',
:'created_at' => :'DateTime',
- :'updated_at' => :'DateTime',
- :'project' => :'ProjectShort'
+ :'updated_at' => :'DateTime'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -93,21 +97,25 @@
if attributes.key?(:'ticket_url')
self.ticket_url = attributes[:'ticket_url']
end
+ if attributes.key?(:'project')
+ self.project = attributes[:'project']
+ end
+
+ if attributes.key?(:'branch')
+ self.branch = attributes[:'branch']
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'updated_at')
self.updated_at = attributes[:'updated_at']
end
-
- if attributes.key?(:'project')
- self.project = attributes[:'project']
- end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -130,13 +138,14 @@
name == o.name &&
briefing == o.briefing &&
due_date == o.due_date &&
state == o.state &&
ticket_url == o.ticket_url &&
+ project == o.project &&
+ branch == o.branch &&
created_at == o.created_at &&
- updated_at == o.updated_at &&
- project == o.project
+ updated_at == o.updated_at
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -144,10 +153,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, name, briefing, due_date, state, ticket_url, created_at, updated_at, project].hash
+ [id, name, briefing, due_date, state, ticket_url, project, branch, 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