Class: Heremaps::Routing::Calculate
- Defined in:
- lib/heremaps/resources/routing/calculate.rb
Constant Summary collapse
- SERVICE =
route.ls.hereapi.com/routing/7.2/calculateroute.json
"route".freeze
- PATH =
"/routing/7.2/".freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Calculate
constructor
A new instance of Calculate.
Methods inherited from Base
get, #get, #prepare_the_request, #request_url, #response_to_missing?
Constructor Details
#initialize ⇒ Calculate
Returns a new instance of Calculate.
8 9 10 11 12 |
# File 'lib/heremaps/resources/routing/calculate.rb', line 8 def initialize @service = SERVICE @path = PATH @method_name = "calculateroute".freeze # getroute as default method. end |