Class: StackOne::Models::Shared::AccountingJournalResultData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_id: nil, created_at: nil, id: nil, lines: nil, memo: nil, posted_at: nil, reference: nil, remote_id: nil, status: nil, transaction_date: nil, updated_at: nil) ⇒ AccountingJournalResultData

Returns a new instance of AccountingJournalResultData.



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/stack_one/models/shared/accountingjournalresult_data.rb', line 39

def initialize(company_id: nil, created_at: nil, id: nil, lines: nil, memo: nil, posted_at: nil, reference: nil, remote_id: nil, status: nil, transaction_date: nil, updated_at: nil)
  @company_id = company_id
  @created_at = created_at
  @id = id
  @lines = lines
  @memo = memo
  @posted_at = posted_at
  @reference = reference
  @remote_id = remote_id
  @status = status
  @transaction_date = transaction_date
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/stack_one/models/shared/accountingjournalresult_data.rb', line 54

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_id == other.company_id
  return false unless @created_at == other.created_at
  return false unless @id == other.id
  return false unless @lines == other.lines
  return false unless @memo == other.memo
  return false unless @posted_at == other.posted_at
  return false unless @reference == other.reference
  return false unless @remote_id == other.remote_id
  return false unless @status == other.status
  return false unless @transaction_date == other.transaction_date
  return false unless @updated_at == other.updated_at
  true
end