Class: GoogleDistanceMatrix::Places
- Inherits:
-
Object
- Object
- GoogleDistanceMatrix::Places
- Includes:
- Enumerable
- Defined in:
- lib/google_distance_matrix/places.rb
Instance Method Summary collapse
- #concat(other) ⇒ Object
-
#initialize(places = []) ⇒ Places
constructor
A new instance of Places.
Constructor Details
#initialize(places = []) ⇒ Places
Returns a new instance of Places.
5 6 7 8 |
# File 'lib/google_distance_matrix/places.rb', line 5 def initialize(places = []) @places = [] concat Array.wrap(places) end |
Instance Method Details
#concat(other) ⇒ Object
24 25 26 |
# File 'lib/google_distance_matrix/places.rb', line 24 def concat(other) push *other end |