Class: EveOnline::ESI::Models::Asset
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::Asset
show all
- Defined in:
- lib/eve_online/esi/models/asset.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
|
# File 'lib/eve_online/esi/models/asset.rb', line 7
def as_json
{
type_id: type_id,
quantity: quantity,
location_id: location_id,
location_type: location_type,
item_id: item_id,
location_flag: location_flag,
is_singleton: is_singleton
}
end
|
#is_singleton ⇒ Object
43
44
45
|
# File 'lib/eve_online/esi/models/asset.rb', line 43
def is_singleton
options['is_singleton']
end
|
#item_id ⇒ Object
35
36
37
|
# File 'lib/eve_online/esi/models/asset.rb', line 35
def item_id
options['item_id']
end
|
#location_flag ⇒ Object
39
40
41
|
# File 'lib/eve_online/esi/models/asset.rb', line 39
def location_flag
options['location_flag']
end
|
#location_id ⇒ Object
27
28
29
|
# File 'lib/eve_online/esi/models/asset.rb', line 27
def location_id
options['location_id']
end
|
#location_type ⇒ Object
31
32
33
|
# File 'lib/eve_online/esi/models/asset.rb', line 31
def location_type
options['location_type']
end
|
#quantity ⇒ Object
23
24
25
|
# File 'lib/eve_online/esi/models/asset.rb', line 23
def quantity
options['quantity']
end
|
#type_id ⇒ Object
19
20
21
|
# File 'lib/eve_online/esi/models/asset.rb', line 19
def type_id
options['type_id']
end
|