Sha256: 082a9cfcfb17c804e6fc95a3fddacea6aab952e07648d5fb2d8544216494cf7a
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class Alliance < Base extend Forwardable API_PATH = '/v3/alliances/%<alliance_id>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 @model ||= Models::Alliance.new(response) end def scope; end def path format("#{ API_PATH }", alliance_id: alliance_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/alliance.rb |
eve_online-0.28.0 | lib/eve_online/esi/alliance.rb |