Class: EveOnline::ESI::Models::AssetLocation

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/asset_location.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
# File 'lib/eve_online/esi/models/asset_location.rb', line 7

def as_json
  {
    item_id: item_id
  }
end

#item_idObject



13
14
15
# File 'lib/eve_online/esi/models/asset_location.rb', line 13

def item_id
  options["item_id"]
end

#positionObject



17
18
19
# File 'lib/eve_online/esi/models/asset_location.rb', line 17

def position
  @position ||= Position.new(options["position"])
end