Sha256: d52eb11267d3a5204c90314fc2e6e7c754e97de2caa1ee9ecdfc365f338fe36b

Contents?: true

Size: 604 Bytes

Versions: 8

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module EveOnline
  module ESI
    class AllianceIcon < Base
      extend Forwardable

      API_PATH = "/v2/alliances/%<alliance_id>s/icons/"

      attr_reader :alliance_id

      def initialize(options)
        super

        @alliance_id = options.fetch(:alliance_id)
      end

      def_delegators :model, :as_json, :icon_small, :icon_medium

      def model
        @model ||= Models::AllianceIcon.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

Version Path
eve_online-0.46.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.45.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.44.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.43.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.42.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.41.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.40.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.39.0 lib/eve_online/esi/alliance_icon.rb