Class: RubyPtvApi::Operation::XRoute::CalcutateRouteInfo
- Defined in:
- lib/ruby_ptv_api/operation/x_route/calculate_route_info.rb
Instance Attribute Summary collapse
-
#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: []) ⇒ CalcutateRouteInfo
constructor
A new instance of CalcutateRouteInfo.
- #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: []) ⇒ CalcutateRouteInfo
Returns a new instance of CalcutateRouteInfo.
7 8 9 10 11 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route_info.rb', line 7 def initialize(waypoints:, options: [], exceptionPaths: []) @waypoints = waypoints @options = @exceptionPaths = exceptionPaths end |
Instance Attribute Details
#exceptionPaths ⇒ Object (readonly)
Returns the value of attribute exceptionPaths.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route_info.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_info.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_info.rb', line 5 def waypoints @waypoints end |
Instance Method Details
#params ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route_info.rb', line 17 def params { waypoints: waypoints, options: , exceptionPaths: exceptionPaths } end |
#ptv_function ⇒ Object
13 14 15 |
# File 'lib/ruby_ptv_api/operation/x_route/calculate_route_info.rb', line 13 def ptv_function 'calculateRouteInfo' end |