Sha256: 0b0afa447fc29d6f429111a9ba502ce9a6f18ec2ece9e079aa916149a0c1a37c
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class Alliance < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/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_ENDPOINT, alliance_id: alliance_id, datasource: datasource) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.23.0 | lib/eve_online/esi/alliance.rb |
eve_online-0.22.0 | lib/eve_online/esi/alliance.rb |
eve_online-0.20.0 | lib/eve_online/esi/alliance.rb |