Method: Hydra::Message.build

Defined in:
lib/hydra/message.rb

.build(hash) ⇒ Object

Build a message from a hash. The hash must contain the :class symbol, which is the class of the message that it will build to.



31
32
33
# File 'lib/hydra/message.rb', line 31

def self.build(hash)
  hash.delete(:class).new(hash)
end