Class: Greeve::Corporation::CorporationSheet

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/corporation/corporation_sheet.rb

Overview

Details for a specific corporation.

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(corporation_id, opts = {}) ⇒ CorporationSheet

Returns a new instance of CorporationSheet.

Parameters:

  • corporation_id (Integer)

    EVE corporation ID



37
38
39
40
# File 'lib/greeve/corporation/corporation_sheet.rb', line 37

def initialize(corporation_id, opts = {})
  opts[:query_params] = { "corporationID" => corporation_id }
  super(opts)
end