Method: GoogleSpreadsheets::List::Format#encode
- Defined in:
- lib/google_spreadsheets/list.rb
#encode(hash, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/google_spreadsheets/list.rb', line 8 def encode(hash, = {}) super(Hash[*hash.map{|p| /^gsx_(.+)/ === p[0] ? ['gsx:'+$1, p[1]] : nil }.compact.flatten], { :namespaces => { 'gsx' => 'http://schemas.google.com/spreadsheets/2006/extended' } }) end |