Class: Google::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/google/log.rb

Overview

Example spreadsheet model.

This enables very basic message pushing to a spreadsheet named ‘sync log’

Usage

entry = Google::Log.new("spreadsheet_id", "awesome stuff!")
entry.sync!

Instance Attribute Summary

Attributes inherited from Base

#doc

Instance Method Summary collapse

Methods inherited from Base

#new_record?, #save, #sync, #sync!

Constructor Details

#initialize(doc_id, message) ⇒ Log

Returns a new instance of Log.



13
14
15
16
17
# File 'lib/google/log.rb', line 13

def initialize(doc_id, message)
  super doc_id

  @message = message
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Google::Base