Class: Greeve::Corporation::CorporationSheet
- Inherits:
-
BaseItem
- Object
- BaseItem
- Greeve::Corporation::CorporationSheet
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
#to_h
Constructor Details
#initialize(corporation_id, opts = {}) ⇒ CorporationSheet
Returns a new instance of CorporationSheet
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
|
Instance Method Details
#alliance_id ⇒ Integer
20
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 20
attribute :alliance_id, xpath: "eveapi/result/allianceID/?[0]", type: :integer
|
#ceo_id ⇒ Integer
14
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 14
attribute :ceo_id, xpath: "eveapi/result/ceoID/?[0]", type: :integer
|
#ceo_name ⇒ String
15
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 15
attribute :ceo_name, xpath: "eveapi/result/ceoName/?[0]", type: :string
|
#corporation_id ⇒ Integer
11
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 11
attribute :corporation_id, xpath: "eveapi/result/corporationID/?[0]", type: :integer
|
#corporation_name ⇒ String
12
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 12
attribute :corporation_name, xpath: "eveapi/result/corporationName/?[0]", type: :string
|
#description ⇒ String
18
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 18
attribute :description, xpath: "eveapi/result/description/?[0]", type: :string
|
#faction_id ⇒ Integer
21
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 21
attribute :faction_id, xpath: "eveapi/result/factionID/?[0]", type: :integer
|
#member_count ⇒ Integer
23
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 23
attribute :member_count, xpath: "eveapi/result/memberCount/?[0]", type: :integer
|
#shares ⇒ Integer
24
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 24
attribute :shares, xpath: "eveapi/result/shares/?[0]", type: :integer
|
#station_id ⇒ Integer
16
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 16
attribute :station_id, xpath: "eveapi/result/stationID/?[0]", type: :integer
|
#station_name ⇒ String
17
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 17
attribute :station_name, xpath: "eveapi/result/stationName/?[0]", type: :string
|
#tax_rate ⇒ BigDecimal
22
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 22
attribute :tax_rate, xpath: "eveapi/result/taxRate/?[0]", type: :numeric
|
#ticker ⇒ String
13
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 13
attribute :ticker, xpath: "eveapi/result/ticker/?[0]", type: :string
|
#url ⇒ String
19
|
# File 'lib/greeve/corporation/corporation_sheet.rb', line 19
attribute :url, xpath: "eveapi/result/url/?[0]", type: :string
|