Sha256: ef4b698f70944d673d29aa7a3ba903d637380afe4850bedd49dbeca730fa3f50
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class Alliance < Base extend Forwardable API_PATH = '/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 @model ||= Models::Alliance.new(response) end def scope; end def url format("#{ API_HOST }#{ API_PATH }", alliance_id: alliance_id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems