Class: EveCrest::Response::SolarSystems

Inherits:
BaseResponse show all
Defined in:
lib/responses/solar_systems.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#data

Instance Method Summary collapse

Methods inherited from BaseResponse

#cached_until, #error_message, #initialize, #raw, #success?

Constructor Details

This class inherits a constructor from EveCrest::BaseResponse

Instance Method Details

#solar_system_idsObject



4
5
6
7
8
9
10
11
# File 'lib/responses/solar_systems.rb', line 4

def solar_system_ids
  #only returns an array solarsystem ids
  _solar_system = Array.new
  data['items'].each do |s|
    _solar_system.push(s['id'])
  end
  _solar_system
end

#solar_system_namesObject



12
13
14
15
16
17
18
19
# File 'lib/responses/solar_systems.rb', line 12

def solar_system_names
  #only returns an array solarsystem ids
  _solar_system = Array.new
  data['items'].each do |s|
    _solar_system.push(s['name'])
  end
  _solar_system
end

#total_countObject



20
21
22
# File 'lib/responses/solar_systems.rb', line 20

def total_count
  data['totalCount']
end