Class: EveOnline::ESI::Models::Station

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

def as_json
  {
    max_dockable_ship_volume: max_dockable_ship_volume,
    name: name,
    office_rental_cost: office_rental_cost,
    owner: owner,
    race_id: race_id,
    reprocessing_efficiency: reprocessing_efficiency,
    reprocessing_stations_take: reprocessing_stations_take,
    services: services,
    station_id: station_id,
    system_id: system_id,
    type_id: type_id
  }
end

#max_dockable_ship_volumeObject



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

def max_dockable_ship_volume
  options["max_dockable_ship_volume"]
end

#nameObject



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

def name
  options["name"]
end

#office_rental_costObject



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

def office_rental_cost
  options["office_rental_cost"]
end

#ownerObject



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

def owner
  options["owner"]
end

#positionObject



67
68
69
# File 'lib/eve_online/esi/models/station.rb', line 67

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

#race_idObject



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

def race_id
  options["race_id"]
end

#reprocessing_efficiencyObject



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

def reprocessing_efficiency
  options["reprocessing_efficiency"]
end

#reprocessing_stations_takeObject



47
48
49
# File 'lib/eve_online/esi/models/station.rb', line 47

def reprocessing_stations_take
  options["reprocessing_stations_take"]
end

#servicesObject



51
52
53
# File 'lib/eve_online/esi/models/station.rb', line 51

def services
  options["services"]
end

#station_idObject



55
56
57
# File 'lib/eve_online/esi/models/station.rb', line 55

def station_id
  options["station_id"]
end

#system_idObject



59
60
61
# File 'lib/eve_online/esi/models/station.rb', line 59

def system_id
  options["system_id"]
end

#type_idObject



63
64
65
# File 'lib/eve_online/esi/models/station.rb', line 63

def type_id
  options["type_id"]
end