Class: GoogleSpreadsheets::Worksheet::Format

Inherits:
GDataFormat
  • Object
show all
Defined in:
lib/google_spreadsheets/worksheet.rb

Instance Method Summary collapse

Methods inherited from GDataFormat

#decode, #extension, #mime_type

Instance Method Details

#encode(hash, options = {}) ⇒ Object



4
5
6
7
# File 'lib/google_spreadsheets/worksheet.rb', line 4

def encode(hash, options = {})
  super({'title'=>hash['title'],'gs:rowCount'=>hash['rowCount'],'gs:colCount'=>hash['colCount']},
        { :namespaces => { 'gs' => 'http://schemas.google.com/spreadsheets/2006' } })
end