lib/turnkey_client/models/activity.rb in turnkey_client-0.0.4 vs lib/turnkey_client/models/activity.rb in turnkey_client-0.0.7

- old
+ new

@@ -38,10 +38,12 @@ attr_accessor :created_at attr_accessor :updated_at + attr_accessor :failure + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'organization_id' => :'organizationId', @@ -52,11 +54,12 @@ :'votes' => :'votes', :'fingerprint' => :'fingerprint', :'can_approve' => :'canApprove', :'can_reject' => :'canReject', :'created_at' => :'createdAt', - :'updated_at' => :'updatedAt' + :'updated_at' => :'updatedAt', + :'failure' => :'failure' } end # Attribute type mapping. def self.openapi_types @@ -70,11 +73,12 @@ :'votes' => :'Object', :'fingerprint' => :'Object', :'can_approve' => :'Object', :'can_reject' => :'Object', :'created_at' => :'Object', - :'updated_at' => :'Object' + :'updated_at' => :'Object', + :'failure' => :'Object' } end # List of attributes with nullable: true def self.openapi_nullable @@ -144,10 +148,14 @@ end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end + + if attributes.key?(:'failure') + self.failure = attributes[:'failure'] + 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 @@ -235,11 +243,12 @@ votes == o.votes && fingerprint == o.fingerprint && can_approve == o.can_approve && can_reject == o.can_reject && created_at == o.created_at && - updated_at == o.updated_at + updated_at == o.updated_at && + failure == o.failure end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -247,10 +256,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at].hash + [id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself