Class: EveOnline::ESI::Models::CharacterShip

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/character_ship.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
# File 'lib/eve_online/esi/models/character_ship.rb', line 7

def as_json
  {
    ship_item_id: ship_item_id,
    ship_name: ship_name,
    ship_type_id: ship_type_id
  }
end

#ship_item_idObject



15
16
17
# File 'lib/eve_online/esi/models/character_ship.rb', line 15

def ship_item_id
  options["ship_item_id"]
end

#ship_nameObject



19
20
21
# File 'lib/eve_online/esi/models/character_ship.rb', line 19

def ship_name
  options["ship_name"]
end

#ship_type_idObject



23
24
25
# File 'lib/eve_online/esi/models/character_ship.rb', line 23

def ship_type_id
  options["ship_type_id"]
end