Class: Greeve::Character::Research
- Defined in:
- lib/greeve/character/research.rb
Overview
Note:
Endpoint: api.eveonline.com/char/Research.xml.aspx
Character research.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ Research
constructor
A new instance of Research.
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 = {}) ⇒ Research
Returns a new instance of Research
20 21 22 23 |
# File 'lib/greeve/character/research.rb', line 20 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end |
Instance Method Details
#research ⇒ Greeve::Rowset
11 12 13 14 15 16 17 |
# File 'lib/greeve/character/research.rb', line 11 rowset :research, xpath: "eveapi/result/rowset[@name='research']" do attribute :agent_id, xpath: "@agentID", type: :integer attribute :skill_type_id, xpath: "@skillTypeID", type: :integer attribute :research_start_date, xpath: "@researchStartDate", type: :datetime attribute :points_per_day, xpath: "@pointsPerDay", type: :numeric attribute :remainder_points, xpath: "@remainderPoints", type: :numeric end |