Class: Greeve::Character::PlanetaryColonies
- Defined in:
- lib/greeve/character/planetary_colonies.rb
Overview
Note:
Planetary colonies owned by character.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ PlanetaryColonies
constructor
A new instance of PlanetaryColonies.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(character_id, opts = {}) ⇒ PlanetaryColonies
Returns a new instance of PlanetaryColonies
26 27 28 29 |
# File 'lib/greeve/character/planetary_colonies.rb', line 26 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end |
Instance Method Details
#colonies ⇒ Greeve::Rowset
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/greeve/character/planetary_colonies.rb', line 11 rowset :colonies, xpath: "eveapi/result/rowset[@name='colonies']" do attribute :solar_system_id, xpath: "@solarSystemID", type: :integer attribute :solar_system_name, xpath: "@solarSystemName", type: :string attribute :planet_id, xpath: "@planetID", type: :integer attribute :planet_name, xpath: "@planetName", type: :string attribute :planet_type_id, xpath: "@planetTypeID", type: :integer attribute :planet_type_name, xpath: "@planetTypeName", type: :string attribute :owner_id, xpath: "@ownerID", type: :integer attribute :owner_name, xpath: "@ownerName", type: :string attribute :last_update, xpath: "@lastUpdate", type: :datetime attribute :upgrade_level, xpath: "@upgradeLevel", type: :integer attribute :number_of_pins, xpath: "@numberOfPins", type: :integer end |