lib/phrase/models/job.rb in phrase-1.0.3 vs lib/phrase/models/job.rb in phrase-1.0.4

- old
+ new

@@ -10,10 +10,12 @@ attr_accessor :due_date attr_accessor :state + attr_accessor :ticket_url + attr_accessor :created_at attr_accessor :updated_at # Attribute mapping from ruby-style variable name to JSON key. @@ -22,10 +24,11 @@ :'id' => :'id', :'name' => :'name', :'briefing' => :'briefing', :'due_date' => :'due_date', :'state' => :'state', + :'ticket_url' => :'ticket_url', :'created_at' => :'created_at', :'updated_at' => :'updated_at' } end @@ -35,10 +38,11 @@ :'id' => :'String', :'name' => :'String', :'briefing' => :'String', :'due_date' => :'DateTime', :'state' => :'String', + :'ticket_url' => :'String', :'created_at' => :'DateTime', :'updated_at' => :'DateTime' } end @@ -81,10 +85,14 @@ if attributes.key?(:'state') self.state = attributes[:'state'] end + if attributes.key?(:'ticket_url') + self.ticket_url = attributes[:'ticket_url'] + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'updated_at') @@ -113,10 +121,11 @@ id == o.id && name == o.name && 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 end # @see the `==` method @@ -126,10 +135,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, briefing, due_date, state, created_at, updated_at].hash + [id, name, briefing, due_date, state, ticket_url, 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