Sha256: 0bc30ffedbc53ee653c3aa815f60053fbe0693354bef93a12b0aa5c8ea060ec8
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class Alliance < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v3/alliances/%<alliance_id>s/?datasource=%<datasource>s' attr_reader :alliance_id def initialize(options) super @alliance_id = options.fetch(:alliance_id) end def_delegators :model, :as_json, :creator_corporation_id, :creator_id, :date_founded, :executor_corporation_id, :faction_id, :name, :ticker def model Models::Alliance.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, alliance_id: alliance_id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/alliance.rb |