Class: EveOnline::ESI::Models::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/eve_online/esi/models/search.rb

Instance Attribute Summary

Attributes inherited from Object

#attributes, #body, #headers

Instance Method Summary collapse

Methods inherited from Object

#initialize, #method_missing, #respond_to_missing?

Methods included from ParsedHeaders

#cache_status, #error_limit_remain, #error_limit_reset, #etag, #ratelimit_group, #ratelimit_limit, #ratelimit_remaining, #ratelimit_used, #request_id, #total_pages

Constructor Details

This class inherits a constructor from EveOnline::ESI::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EveOnline::ESI::Object

Instance Method Details

#agent_idsObject



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

def agent_ids
  attributes.agent || []
end

#alliance_idsObject



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

def alliance_ids
  attributes.alliance || []
end

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/eve_online/esi/models/search.rb', line 7

def as_json
  {
    agent_ids: agent_ids,
    alliance_ids: alliance_ids,
    character_ids: character_ids,
    constellation_ids: constellation_ids,
    corporation_ids: corporation_ids,
    faction_ids: faction_ids,
    inventory_type_ids: inventory_type_ids,
    region_ids: region_ids,
    solar_system_ids: solar_system_ids,
    station_ids: station_ids,
    structure_ids: structure_ids
  }
end

#character_idsObject



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

def character_ids
  attributes.character || []
end

#constellation_idsObject



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

def constellation_ids
  attributes.constellation || []
end

#corporation_idsObject



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

def corporation_ids
  attributes.corporation || []
end

#faction_idsObject



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

def faction_ids
  attributes.faction || []
end

#inventory_type_idsObject



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

def inventory_type_ids
  attributes.inventory_type || []
end

#region_idsObject



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

def region_ids
  attributes.region || []
end

#solar_system_idsObject



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

def solar_system_ids
  attributes.solar_system || []
end

#station_idsObject



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

def station_ids
  attributes.station || []
end

#structure_idsObject



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

def structure_ids
  attributes.structure || []
end