lib/phrase/models/job.rb in phrase-1.0.4 vs lib/phrase/models/job.rb in phrase-1.0.5
- old
+ new
@@ -16,21 +16,24 @@
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',
:'created_at' => :'created_at',
- :'updated_at' => :'updated_at'
+ :'updated_at' => :'updated_at',
+ :'project' => :'project'
}
end
# Attribute type mapping.
def self.openapi_types
@@ -40,11 +43,12 @@
:'briefing' => :'String',
:'due_date' => :'DateTime',
:'state' => :'String',
:'ticket_url' => :'String',
:'created_at' => :'DateTime',
- :'updated_at' => :'DateTime'
+ :'updated_at' => :'DateTime',
+ :'project' => :'ProjectShort'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -96,10 +100,14 @@
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
@@ -123,11 +131,12 @@
briefing == o.briefing &&
due_date == o.due_date &&
state == o.state &&
ticket_url == o.ticket_url &&
created_at == o.created_at &&
- updated_at == o.updated_at
+ updated_at == o.updated_at &&
+ project == o.project
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -135,10 +144,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].hash
+ [id, name, briefing, due_date, state, ticket_url, created_at, updated_at, project].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself