Sha256: d641520a6faccea0aaad7fdb4183875117d6e0dc27589b960fd8744088a5a343
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true require "forwardable" module EveOnline module ESI class CharacterShip < Base extend Forwardable API_PATH = "/v1/characters/%<character_id>s/ship/" attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def_delegators :model, :as_json, :ship_item_id, :ship_name, :ship_type_id def model @model ||= Models::CharacterShip.new(response) end def scope "esi-location.read_ship_type.v1" end def path format(API_PATH, character_id: character_id) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.32.0 | lib/eve_online/esi/character_ship.rb |
eve_online-0.31.0 | lib/eve_online/esi/character_ship.rb |
eve_online-0.30.0 | lib/eve_online/esi/character_ship.rb |