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
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_copyObject



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

def is_blueprint_copy
  options["is_blueprint_copy"]
end

#is_singletonObject



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

def is_singleton
  options["is_singleton"]
end

#item_idObject



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

def item_id
  options["item_id"]
end

#location_flagObject



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

def location_flag
  options["location_flag"]
end

#location_idObject



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

def location_id
  options["location_id"]
end

#location_typeObject



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

def location_type
  options["location_type"]
end

#quantityObject



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

def quantity
  options["quantity"]
end

#type_idObject



48
49
50
# File 'lib/eve_online/esi/models/asset.rb', line 48

def type_id
  options["type_id"]
end