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