Method: Upay::Address::Address#to_hash
- Defined in:
- lib/upay/address/address.rb
#to_hash ⇒ Object
36 37 38 |
# File 'lib/upay/address/address.rb', line 36 def to_hash self.instance_variables.each_with_object({}) { |var,hash| hash[var.to_s.delete("@").to_sym] = self.instance_variable_get(var)} end |