Method: CloudBuilder::JSONable#to_hash
- Defined in:
- lib/cloud_builder/jsonable.rb
#to_hash ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/cloud_builder/jsonable.rb', line 3 def to_hash hash = {} self.instance_variables.each do |var| hash[var.to_s.delete("@")] = self.instance_variable_get var end hash end |