Sha256: e3fa4eb65f9253fdd2f3a4e18d690a0b9de3b6fd6de65597daa5c641aa7a4d46
Contents?: true
Size: 679 Bytes
Versions: 8
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true require "forwardable" module EveOnline module ESI class Alliance < Base extend Forwardable API_PATH = "/v4/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
8 entries across 8 versions & 1 rubygems