Class: GustoEmbedded::Models::Shared::InvoiceData
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::InvoiceData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/invoice_data.rb
Overview
Representation of a partners invoice data
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(active_companies: nil) ⇒ InvoiceData
constructor
A new instance of InvoiceData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(active_companies: nil) ⇒ InvoiceData
Returns a new instance of InvoiceData.
19 20 21 |
# File 'lib/gusto_embedded/models/shared/invoice_data.rb', line 19 def initialize(active_companies: nil) @active_companies = active_companies end |
Instance Method Details
#==(other) ⇒ Object
24 25 26 27 28 |
# File 'lib/gusto_embedded/models/shared/invoice_data.rb', line 24 def ==(other) return false unless other.is_a? self.class return false unless @active_companies == other.active_companies true end |