Class: GustoEmbedded::Models::Shared::ContractorPaymentMethod

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/contractor_payment_method.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(version: nil, type: nil, split_by: nil, splits: nil) ⇒ ContractorPaymentMethod

Returns a new instance of ContractorPaymentMethod.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/contractor_payment_method.rb', line 25

def initialize(version: nil, type: nil, split_by: nil, splits: nil)
  @version = version
  @type = type
  @split_by = split_by
  @splits = splits
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/contractor_payment_method.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @type == other.type
  return false unless @split_by == other.split_by
  return false unless @splits == other.splits
  true
end