Class: GoogleDistanceMatrix::Places

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/google_distance_matrix/places.rb

Instance Method Summary collapse

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