Method: SDM::Redshift#to_json
- Defined in:
- lib/models/porcelain.rb
#to_json(options = {}) ⇒ Object
11959 11960 11961 11962 11963 11964 11965 |
# File 'lib/models/porcelain.rb', line 11959 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |