Class: Greeve::Eve::RefTypes

Inherits:
BaseItem show all
Defined in:
lib/greeve/eve/ref_types.rb

Overview

A list of transaction types used in the Corporation::WalletJournal and Character::WalletJournal.

Attributes collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #initialize, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

This class inherits a constructor from Greeve::BaseItem

Instance Method Details

#ref_typesGreeve::Rowset

Parameters:

  • ref_type_id (Integer)
  • ref_type_name (String)

Returns:



12
13
14
15
# File 'lib/greeve/eve/ref_types.rb', line 12

rowset :ref_types, xpath: "eveapi/result/rowset[@name='refTypes']" do
  attribute :ref_type_id,   xpath: "@refTypeID",   type: :integer
  attribute :ref_type_name, xpath: "@refTypeName", type: :string
end