Class: EveCrest::Response::Constellations

Inherits:
BaseResponse show all
Defined in:
lib/responses/constellations.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

#constellation_idsObject



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

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

#constellation_namesObject



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

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

#total_countObject



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

def total_count
  data['totalCount']
end