class MapboxDirections::Response
Attributes
destination[R]
error[R]
message[R]
origin[R]
routes[R]
waypoints[R]
Public Class Methods
new(attrs)
click to toggle source
# File lib/mapbox_directions/model/response.rb, line 7 def initialize(attrs) @origin = attrs[:origin] @destination = attrs[:destination] @waypoints = attrs[:waypoints] || [] @routes = attrs[:routes] || [] @message = attrs[:message] @error = attrs[:error] end