Class: GoogleMapDirections::Path
- Inherits:
-
Object
- Object
- GoogleMapDirections::Path
- Defined in:
- lib/google_map_directions/path.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#end_location ⇒ Object
readonly
Returns the value of attribute end_location.
-
#HTML_instructions ⇒ Object
readonly
Returns the value of attribute HTML_instructions.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#start_location ⇒ Object
readonly
Returns the value of attribute start_location.
Instance Method Summary collapse
-
#initialize(distance, duration, end_location, start_location, number, html_instructions) ⇒ Path
constructor
A new instance of Path.
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
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
3 4 5 |
# File 'lib/google_map_directions/path.rb', line 3 def distance @distance end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
3 4 5 |
# File 'lib/google_map_directions/path.rb', line 3 def duration @duration end |
#end_location ⇒ Object (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_instructions ⇒ Object (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 |
#number ⇒ Object (readonly)
Returns the value of attribute number.
3 4 5 |
# File 'lib/google_map_directions/path.rb', line 3 def number @number end |
#start_location ⇒ Object (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 |