Class: EveOnline::ESI::Models::WalletTransaction
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::WalletTransaction
show all
- Defined in:
- lib/eve_online/esi/models/wallet_transaction.rb
Instance Attribute Summary
Attributes inherited from Base
#options
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#as_json ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 7
def as_json
{
client_id: client_id,
date: date,
is_buy: is_buy,
is_personal: is_personal,
journal_ref_id: journal_ref_id,
location_id: location_id,
quantity: quantity,
transaction_id: transaction_id,
type_id: type_id,
unit_price: unit_price
}
end
|
#client_id ⇒ Object
22
23
24
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 22
def client_id
options["client_id"]
end
|
#date ⇒ Object
26
27
28
29
30
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 26
def date
date = options["date"]
parse_datetime_with_timezone(date) if date
end
|
#is_buy ⇒ Object
32
33
34
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 32
def is_buy
options["is_buy"]
end
|
#is_personal ⇒ Object
36
37
38
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 36
def is_personal
options["is_personal"]
end
|
#journal_ref_id ⇒ Object
40
41
42
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 40
def journal_ref_id
options["journal_ref_id"]
end
|
#location_id ⇒ Object
44
45
46
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 44
def location_id
options["location_id"]
end
|
#quantity ⇒ Object
48
49
50
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 48
def quantity
options["quantity"]
end
|
#transaction_id ⇒ Object
52
53
54
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 52
def transaction_id
options["transaction_id"]
end
|
#type_id ⇒ Object
56
57
58
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 56
def type_id
options["type_id"]
end
|
#unit_price ⇒ Object
60
61
62
|
# File 'lib/eve_online/esi/models/wallet_transaction.rb', line 60
def unit_price
options["unit_price"]
end
|