Class: EveOnline::ESI::Models::Constellation

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

def as_json
  {
    constellation_id: constellation_id,
    name: name,
    region_id: region_id
  }
end

#constellation_idObject



15
16
17
# File 'lib/eve_online/esi/models/constellation.rb', line 15

def constellation_id
  options["constellation_id"]
end

#nameObject



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

def name
  options["name"]
end

#positionObject



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

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

#region_idObject



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

def region_id
  options["region_id"]
end

#system_idsObject



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

def system_ids
  options["systems"]
end