Class: RubyPtvApi::Operation::XRoute::CalcutateRoute
- Defined in:
- lib/ruby_ptv_api/operation/x_route/calculate_route.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#exceptionPaths ⇒ Object
readonly
Returns the value of attribute exceptionPaths.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#waypoints ⇒ Object
readonly
Returns the value of attribute waypoints.
Attributes inherited from Base
#result_field_array, #search_option_base_array, #sort_option_array
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(waypoints:, options:, exceptionPaths:, details:) ⇒ CalcutateRoute
constructor
A new instance of CalcutateRoute.
- #params ⇒ Object
- #ptv_function ⇒ Object
Methods inherited from Base
Methods inherited from Base
#connection, #default_params, #demodulize, #demodulized_name, #endpoint, #parent_module_name, #post, #ptv_path, #underscore, #uri
Constructor Details
#initialize(waypoints:, options:, exceptionPaths:, details:) ⇒ CalcutateRoute
Returns a new instance of CalcutateRoute.
7 8 9 10 11 12 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 7 def initialize(waypoints:, options:, exceptionPaths: , details:) @waypoints = waypoints @options = @exceptionPaths = exceptionPaths @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 5 def details @details end |
#exceptionPaths ⇒ Object (readonly)
Returns the value of attribute exceptionPaths.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 5 def exceptionPaths @exceptionPaths end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 5 def @options end |
#waypoints ⇒ Object (readonly)
Returns the value of attribute waypoints.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 5 def waypoints @waypoints end |
Instance Method Details
#params ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 18 def params { waypoints: waypoints, options: , exceptionPaths: exceptionPaths, details: details } end |
#ptv_function ⇒ Object
14 15 16 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route.rb', line 14 def ptv_function 'calculateRoute' end |