Class: RubyPtvApi::Operation::XRoute::CalcutateReachableObjects

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#result_field_array, #search_option_base_array, #sort_option_array

Attributes inherited from Base

#coord_format, #profile

Instance Method Summary collapse

Methods inherited from Base

#call, #ptv_path

Methods inherited from Base

#connection, #default_params, #demodulize, #demodulized_name, #endpoint, #parent_module_name, #post, #ptv_path, #underscore, #uri

Constructor Details

#initialize(binaryPathDesc:, locations:, expansionDesc:, sink: nil, options: []) ⇒ CalcutateReachableObjects

Returns a new instance of CalcutateReachableObjects.



7
8
9
10
11
12
13
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 7

def initialize(binaryPathDesc:, locations:, expansionDesc:, sink: nil, options: [])
  @sink = sink
  @binaryPathDesc = binaryPathDesc
  @locations = locations
  @options = options
  @expansionDesc = expansionDesc
end

Instance Attribute Details

#binaryPathDescObject (readonly)

Returns the value of attribute binaryPathDesc.



5
6
7
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 5

def binaryPathDesc
  @binaryPathDesc
end

#expansionDescObject (readonly)

Returns the value of attribute expansionDesc.



5
6
7
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 5

def expansionDesc
  @expansionDesc
end

#locationsObject (readonly)

Returns the value of attribute locations.



5
6
7
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 5

def locations
  @locations
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 5

def options
  @options
end

#sinkObject (readonly)

Returns the value of attribute sink.



5
6
7
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 5

def sink
  @sink
end

Instance Method Details

#paramsObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 19

def params
  prms = { 
    binaryPathDesc: binaryPathDesc,
    locations: locations,
    options: options,
    expansionDesc: expansionDesc,
  }
  prms.merge!({ sink: sink }) if sink
  prms
end

#ptv_functionObject



15
16
17
# File 'lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb', line 15

def ptv_function
  'calculateReachableObjects'
end