Class: GustoEmbedded::Models::Shared::Documents
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Documents
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/documents.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(document_type:, document_title:, issuing_authority:, document_number: nil, expiration_date: nil) ⇒ Documents
constructor
A new instance of Documents.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(document_type:, document_title:, issuing_authority:, document_number: nil, expiration_date: nil) ⇒ Documents
Returns a new instance of Documents.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/documents.rb', line 27 def initialize(document_type:, document_title:, issuing_authority:, document_number: nil, expiration_date: nil) @document_type = document_type @document_title = document_title @issuing_authority = @document_number = document_number @expiration_date = expiration_date end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/documents.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @document_type == other.document_type return false unless @document_title == other.document_title return false unless @issuing_authority == other. return false unless @document_number == other.document_number return false unless @expiration_date == other.expiration_date true end |