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
18
|
# File 'lib/eve_online/esi/models/asset.rb', line 7
def as_json
{
is_blueprint_copy: is_blueprint_copy,
is_singleton: is_singleton,
item_id: item_id,
location_flag: location_flag,
location_id: location_id,
location_type: location_type,
quantity: quantity,
type_id: type_id
}
end
|
#is_blueprint_copy ⇒ Object
20
21
22
|
# File 'lib/eve_online/esi/models/asset.rb', line 20
def is_blueprint_copy
options["is_blueprint_copy"]
end
|
#is_singleton ⇒ Object
24
25
26
|
# File 'lib/eve_online/esi/models/asset.rb', line 24
def is_singleton
options["is_singleton"]
end
|
#item_id ⇒ Object
28
29
30
|
# File 'lib/eve_online/esi/models/asset.rb', line 28
def item_id
options["item_id"]
end
|
#location_flag ⇒ Object
32
33
34
|
# File 'lib/eve_online/esi/models/asset.rb', line 32
def location_flag
options["location_flag"]
end
|
#location_id ⇒ Object
36
37
38
|
# File 'lib/eve_online/esi/models/asset.rb', line 36
def location_id
options["location_id"]
end
|
#location_type ⇒ Object
40
41
42
|
# File 'lib/eve_online/esi/models/asset.rb', line 40
def location_type
options["location_type"]
end
|
#quantity ⇒ Object
44
45
46
|
# File 'lib/eve_online/esi/models/asset.rb', line 44
def quantity
options["quantity"]
end
|
#type_id ⇒ Object
48
49
50
|
# File 'lib/eve_online/esi/models/asset.rb', line 48
def type_id
options["type_id"]
end
|