Class: Greeve::Character::Skills
- Defined in:
- lib/greeve/character/skills.rb
Overview
Note:
Endpoint: api.eveonline.com/char/Skills.xml.aspx
Known skills of a character.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ Skills
constructor
A new instance of Skills.
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 = {}) ⇒ Skills
Returns a new instance of Skills
22 23 24 25 |
# File 'lib/greeve/character/skills.rb', line 22 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end |
Instance Method Details
#free_skill_points ⇒ Integer
11 |
# File 'lib/greeve/character/skills.rb', line 11 attribute :free_skill_points, xpath: "eveapi/result/freeSkillPoints/?[0]", type: :integer |
#skills ⇒ Greeve::Rowset
13 14 15 16 17 18 19 |
# File 'lib/greeve/character/skills.rb', line 13 rowset :skills, xpath: "eveapi/result/rowset[@name='skills']" do attribute :type_id, xpath: "@typeID", type: :integer attribute :type_name, xpath: "@typeName", type: :string attribute :skillpoints, xpath: "@skillpoints", type: :integer attribute :level, xpath: "@level", type: :integer attribute :published, xpath: "@published", type: :boolean end |