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