Sha256: a8b74aab4a7053f70100469a681ae1cdc0be5455b27345627bb349128d280744
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require 'forwardable' module EveOnline module ESI class Corporation < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v4/corporations/%<corporation_id>s/?datasource=tranquility'.freeze attr_reader :corporation_id def initialize(options) super @corporation_id = options[:corporation_id] end def_delegators :model, :as_json, :name, :ticker, :member_count, :ceo_id, :alliance_id, :description, :tax_rate, :date_founded, :creator_id, :corporation_url, :faction_id, :home_station_id, :shares def model Models::Corporation.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, corporation_id: corporation_id) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.14.0 | lib/eve_online/esi/corporation.rb |