module GoogleMapsAPI::Directions::LegAndStepCommonBuilders

Public Instance Methods

build_coordinate(hash) click to toggle source
# File lib/google_maps_api/directions/leg_and_step_common_builders.rb, line 10
def build_coordinate(hash)
  GoogleMapsAPI::Core::Coordinate.from_hash(hash)
end
build_distance(hash) click to toggle source
# File lib/google_maps_api/directions/leg_and_step_common_builders.rb, line 2
def build_distance(hash)
  GoogleMapsAPI::Core::Distance.from_hash(hash["distance"])
end
build_duration(hash) click to toggle source
# File lib/google_maps_api/directions/leg_and_step_common_builders.rb, line 6
def build_duration(hash)
  GoogleMapsAPI::Core::Duration.from_hash(hash["duration"])
end