Method: SDM::SSH#to_json
- Defined in:
- lib/models/porcelain.rb
#to_json(options = {}) ⇒ Object
7334 7335 7336 7337 7338 7339 7340 |
# File 'lib/models/porcelain.rb', line 7334 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 |