Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/trello/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#jsoned_into(obj) ⇒ Object



2
3
4
5
# File 'lib/trello/core_ext/hash.rb', line 2

def jsoned_into(obj)
  action = obj.kind_of?(Class) ? :new : :update_fields
  obj.send(action, self)
end