Module: GoogleMapsAPI::Directions::LegAndStepCommonBuilders
Instance Method Summary collapse
Instance Method Details
#build_coordinate(hash) ⇒ Object
10 11 12 |
# 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) ⇒ Object
2 3 4 |
# 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) ⇒ Object
6 7 8 |
# 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 |