Class: GoogleDistanceMatrix::Places

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

Overview

Represents a collection of places

Instance Method Summary collapse

Constructor Details

#initialize(places = []) ⇒ Places

Returns a new instance of Places.



8
9
10
11
# File 'lib/google_distance_matrix/places.rb', line 8

def initialize(places = [])
  @places = []
  concat Array.wrap(places)
end

Instance Method Details

#concat(other) ⇒ Object



26
27
28
# File 'lib/google_distance_matrix/places.rb', line 26

def concat(other)
  push(*other)
end