Method: SDM::AccountDeleteResponse#to_json

Defined in:
lib/models/porcelain.rb

#to_json(options = {}) ⇒ Object



1283
1284
1285
1286
1287
1288
1289
# File 'lib/models/porcelain.rb', line 1283

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end