Sha256: af4ae36aac8e31faf091cfd53b0f178d2c439551f66cdf21b862819786d6a09f
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
require 'forwardable' module EveOnline module ESI class Alliance < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v3/alliances/%<alliance_id>s/?datasource=tranquility'.freeze attr_reader :alliance_id def initialize(options) super @alliance_id = options[:alliance_id] end def_delegators :model, :as_json, :name, :ticker, :creator_id, :creator_corporation_id, :executor_corporation_id, :date_founded, :faction_id def model Models::Alliance.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, alliance_id: alliance_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/alliance.rb |