Sha256: 46b5761ec4504ee054b50d99d53c239cc10fb46ee14401448dbb0516cd477c0b

Contents?: true

Size: 519 Bytes

Versions: 12

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class CharacterShip < Base
        def as_json
          {
            ship_item_id: ship_item_id,
            ship_name: ship_name,
            ship_type_id: ship_type_id
          }
        end

        def ship_item_id
          options['ship_item_id']
        end

        def ship_name
          options['ship_name']
        end

        def ship_type_id
          options['ship_type_id']
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.28.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.27.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.26.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.25.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.24.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.23.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.22.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.21.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.20.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.19.0 lib/eve_online/esi/models/character_ship.rb
eve_online-0.18.0 lib/eve_online/esi/models/character_ship.rb