Method: SDM::GCPStore#to_json

Defined in:
lib/models/porcelain.rb

#to_json(options = {}) ⇒ Object



5820
5821
5822
5823
5824
5825
5826
# File 'lib/models/porcelain.rb', line 5820

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