Class: EveOnline::ESI::Models::Corporation

Inherits:
Object
  • Object
show all
Defined in:
lib/eve_online/esi/models/corporation.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

#as_jsonObject



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

def as_json
  {
    alliance_id: attributes.alliance_id,
    ceo_id: attributes.ceo_id,
    creator_id: attributes.creator_id,
    date_founded: attributes.date_founded,
    description: attributes.description,
    faction_id: attributes.faction_id,
    home_station_id: attributes.home_station_id,
    member_count: attributes.member_count,
    name: attributes.name,
    shares: attributes.shares,
    tax_rate: attributes.tax_rate,
    ticker: attributes.ticker,
    corporation_url: corporation_url,
    war_eligible: attributes.war_eligible
  }
end

#corporation_urlObject



26
27
28
# File 'lib/eve_online/esi/models/corporation.rb', line 26

def corporation_url
  attributes.url
end