module ZohoReports::ZohoReportify::LocalInstanceMethods

Public Instance Methods

save_zoho_record() click to toggle source
# File lib/zoho_reports/zoho_reportify.rb, line 40
def save_zoho_record
  client = ZohoReports::Client.new

  # Notice the ZOHO_DATE_FORMAT here
  client.import_data(
    self.class.table_name, 
    'UPDATEADD', 
    [ZohoReports::Client.zoho_attributes(self.attributes)].to_json, 
  )

  # Turn standard json back on
  
end