Class: GoogleMapDirections::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/google_map_directions/path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(distance, duration, end_location, start_location, number, html_instructions) ⇒ Path

Returns a new instance of Path.



5
6
7
8
9
10
11
12
# File 'lib/google_map_directions/path.rb', line 5

def initialize(distance, duration, end_location, start_location, number, html_instructions)
  @distance = distance
  @duration = duration
  @end_location = end_location
  @start_location = start_location
  @number = number
  @HTML_instructions = html_instructions
end

Instance Attribute Details

#distanceObject (readonly)

Returns the value of attribute distance.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def distance
  @distance
end

#durationObject (readonly)

Returns the value of attribute duration.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def duration
  @duration
end

#end_locationObject (readonly)

Returns the value of attribute end_location.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def end_location
  @end_location
end

#HTML_instructionsObject (readonly)

Returns the value of attribute HTML_instructions.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def HTML_instructions
  @HTML_instructions
end

#numberObject (readonly)

Returns the value of attribute number.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def number
  @number
end

#start_locationObject (readonly)

Returns the value of attribute start_location.



3
4
5
# File 'lib/google_map_directions/path.rb', line 3

def start_location
  @start_location
end