Class: Tact::GoogleContacts::EntriesCollection
- Inherits:
-
Object
- Object
- Tact::GoogleContacts::EntriesCollection
- Includes:
- Enumerable
- Defined in:
- lib/tact/google_client.rb
Instance Method Summary collapse
- #<<(entry) ⇒ Object
- #each ⇒ Object
-
#initialize(entries = []) ⇒ EntriesCollection
constructor
A new instance of EntriesCollection.
Constructor Details
#initialize(entries = []) ⇒ EntriesCollection
Returns a new instance of EntriesCollection.
63 64 65 |
# File 'lib/tact/google_client.rb', line 63 def initialize(entries=[]) @entries = entries end |
Instance Method Details
#<<(entry) ⇒ Object
67 68 69 |
# File 'lib/tact/google_client.rb', line 67 def <<(entry) @entries << entry end |
#each ⇒ Object
71 72 73 |
# File 'lib/tact/google_client.rb', line 71 def each @entries.each { |c| yield(c) } end |