class RubyPtvApi::Operation::XRoute::CalcutateReachableObjects

Attributes

binaryPathDesc[R]
expansionDesc[R]
locations[R]
options[R]
sink[R]

Public Class Methods

new(binaryPathDesc:, locations:, expansionDesc:, sink: nil, options: []) click to toggle source
# 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

Public Instance Methods

params() click to toggle source
# 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_function() click to toggle source
# File lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb, line 15
def ptv_function
  'calculateReachableObjects'
end

Protected Instance Methods

response_class() click to toggle source
# File lib/ruby_ptv_api/operation/x_route/calculate_reachable_objects.rb, line 32
def response_class
  RubyPtvApi::Model::XRoute::Reach
end