Sha256: 9d46cd4e1c86a5ce5718d3b1bfa288fb94d880cf8ccd6ced2512d2ddd1e3fd63

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require_relative "../base_item"

module Greeve
  module Corporation
    # List of corporation starbases.
    #
    # @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/corporation/corp_starbaselist.html
    class StarbaseList < Greeve::BaseItem
      endpoint "corp/StarbaseList"

      rowset :starbases, xpath: "eveapi/result/rowset[@name='starbases']" do
        attribute :item_id,           xpath: "@itemID",          type: :integer
        attribute :type_id,           xpath: "@typeID",          type: :integer
        attribute :location_id,       xpath: "@locationID",      type: :integer
        attribute :moon_id,           xpath: "@moonID",          type: :integer
        attribute :state,             xpath: "@state",           type: :integer
        attribute :state_timestamp,   xpath: "@stateTimestamp",  type: :datetime
        attribute :online_timestamp,  xpath: "@onlineTimestamp", type: :datetime
        attribute :standing_owner_id, xpath: "@standingOwnerID", type: :integer
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greeve-1.0.0 lib/greeve/corporation/starbase_list.rb