Sha256: 7551afe3b7070312d0933eacaaa1b050bfc3da8bb37b7784eae5e1a8e421b58f

Contents?: true

Size: 604 Bytes

Versions: 10

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module EveOnline
  module ESI
    class AllianceIcon < Base
      extend Forwardable

      API_PATH = "/v1/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

10 entries across 10 versions & 1 rubygems

Version Path
eve_online-0.38.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.37.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.36.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.35.1 lib/eve_online/esi/alliance_icon.rb
eve_online-0.35.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.34.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.33.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.32.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.31.0 lib/eve_online/esi/alliance_icon.rb
eve_online-0.30.0 lib/eve_online/esi/alliance_icon.rb