Class: EveOnline::ESI::Models::Asset

Inherits:
Base
  • Object
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

Constructor Details

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

Instance Method Details

#as_jsonObject



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_singletonObject



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

def is_singleton
  options['is_singleton']
end

#item_idObject



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

def item_id
  options['item_id']
end

#location_flagObject



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

def location_flag
  options['location_flag']
end

#location_idObject



27
28
29
# File 'lib/eve_online/esi/models/asset.rb', line 27

def location_id
  options['location_id']
end

#location_typeObject



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

def location_type
  options['location_type']
end

#quantityObject



23
24
25
# File 'lib/eve_online/esi/models/asset.rb', line 23

def quantity
  options['quantity']
end

#type_idObject



19
20
21
# File 'lib/eve_online/esi/models/asset.rb', line 19

def type_id
  options['type_id']
end