Method: GoogleDrive::List#push

Defined in:
lib/google_drive/list.rb

#push(hash) ⇒ Object

Adds a new row to the bottom. Keys of hash are colum names (the first row). Returns GoogleDrive::ListRow for the new row.

Note that update is not sent to the server until you call GoogleDrive::Worksheet#save().



82
83
84
85
86
# File 'lib/google_drive/list.rb', line 82

def push(hash)
  row = self[size]
  row.update(hash)
  row
end