Class: GustoEmbedded::Models::Shared::DocumentSigned
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::DocumentSigned
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/document_signed.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid: nil, title: nil, name: nil, recipient_type: nil, recipient_uuid: nil, pages: nil, fields_: nil, description: nil, requires_signing: nil, draft: nil, signed_at: nil, year: nil, quarter: nil) ⇒ DocumentSigned
constructor
A new instance of DocumentSigned.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, title: nil, name: nil, recipient_type: nil, recipient_uuid: nil, pages: nil, fields_: nil, description: nil, requires_signing: nil, draft: nil, signed_at: nil, year: nil, quarter: nil) ⇒ DocumentSigned
Returns a new instance of DocumentSigned.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/gusto_embedded/models/shared/document_signed.rb', line 43 def initialize(uuid: nil, title: nil, name: nil, recipient_type: nil, recipient_uuid: nil, pages: nil, fields_: nil, description: nil, requires_signing: nil, draft: nil, signed_at: nil, year: nil, quarter: nil) @uuid = uuid @title = title @name = name @recipient_type = recipient_type @recipient_uuid = recipient_uuid @pages = pages @fields_ = fields_ @description = description @requires_signing = requires_signing @draft = draft @signed_at = signed_at @year = year @quarter = quarter end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/gusto_embedded/models/shared/document_signed.rb', line 60 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @title == other.title return false unless @name == other.name return false unless @recipient_type == other.recipient_type return false unless @recipient_uuid == other.recipient_uuid return false unless @pages == other.pages return false unless @fields_ == other.fields_ return false unless @description == other.description return false unless @requires_signing == other.requires_signing return false unless @draft == other.draft return false unless @signed_at == other.signed_at return false unless @year == other.year return false unless @quarter == other.quarter true end |