Class: EveCrest::Request::War
- Inherits:
-
Object
- Object
- EveCrest::Request::War
- Defined in:
- lib/requests/war.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(param) ⇒ War
constructor
A new instance of War.
Constructor Details
#initialize(param) ⇒ War
Returns a new instance of War.
4 5 6 |
# File 'lib/requests/war.rb', line 4 def initialize(param) @id = param end |
Instance Method Details
#get ⇒ Object
7 8 9 |
# File 'lib/requests/war.rb', line 7 def get EveCrest::Response::War.new(EveCrest::HTTPSRequest.get("/wars/#{@id}/",86400)) end |