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