Class: EveOnline::ESI::CharacterAttributes
- Extended by:
- Forwardable
- Defined in:
- lib/eve_online/esi/character_attributes.rb
Constant Summary collapse
- API_ENDPOINT =
'https://esi.tech.ccp.is/v1/characters/%<character_id>s/attributes/?datasource=tranquility'
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterAttributes
constructor
A new instance of CharacterAttributes.
- #model ⇒ Object
- #scope ⇒ Object
- #url ⇒ Object
Methods inherited from Base
#content, #response, #user_agent
Constructor Details
#initialize(options) ⇒ CharacterAttributes
Returns a new instance of CharacterAttributes.
14 15 16 17 18 |
# File 'lib/eve_online/esi/character_attributes.rb', line 14 def initialize() super @character_id = [:character_id] end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
12 13 14 |
# File 'lib/eve_online/esi/character_attributes.rb', line 12 def character_id @character_id end |
Instance Method Details
#model ⇒ Object
24 25 26 |
# File 'lib/eve_online/esi/character_attributes.rb', line 24 def model Models::Attributes.new(response) end |
#scope ⇒ Object
29 30 31 |
# File 'lib/eve_online/esi/character_attributes.rb', line 29 def scope 'esi-skills.read_skills.v1' end |
#url ⇒ Object
33 34 35 |
# File 'lib/eve_online/esi/character_attributes.rb', line 33 def url format(API_ENDPOINT, character_id: character_id) end |