Class: EveOnline::ESI::Models::WalletJournalEntry

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/wallet_journal_entry.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#amountObject



55
56
57
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 55

def amount
  options['amount']
end

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 7

def as_json
  {
    date: date,
    ref_id: ref_id,
    ref_type: ref_type,
    first_party_id: first_party_id,
    first_party_type: first_party_type,
    second_party_id: second_party_id,
    second_party_type: second_party_type,
    amount: amount,
    balance: balance,
    reason: reason,
    tax_receiver_id: tax_receiver_id,
    tax: tax
    # TODO: add extra_info
  }
end

#balanceObject



59
60
61
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 59

def balance
  options['balance']
end

#dateObject



25
26
27
28
29
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 25

def date
  date = options['date']

  parse_datetime_with_timezone(date) if date
end

#first_party_idObject



39
40
41
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 39

def first_party_id
  options['first_party_id']
end

#first_party_typeObject



43
44
45
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 43

def first_party_type
  options['first_party_type']
end

#reasonObject



63
64
65
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 63

def reason
  options['reason']
end

#ref_idObject



31
32
33
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 31

def ref_id
  options['ref_id']
end

#ref_typeObject



35
36
37
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 35

def ref_type
  options['ref_type']
end

#second_party_idObject



47
48
49
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 47

def second_party_id
  options['second_party_id']
end

#second_party_typeObject



51
52
53
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 51

def second_party_type
  options['second_party_type']
end

#taxObject



71
72
73
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 71

def tax
  options['tax']
end

#tax_receiver_idObject



67
68
69
# File 'lib/eve_online/esi/models/wallet_journal_entry.rb', line 67

def tax_receiver_id
  options['tax_receiver_id']
end