Method: Hydra::Message#initialize

Defined in:
lib/hydra/message.rb

#initialize(opts = {}) ⇒ Message

Create a new message. Opts is a hash where the keys are attributes of the message and the values are set to the attribute.



21
22
23
24
25
26
# File 'lib/hydra/message.rb', line 21

def initialize(opts = {})
  opts.delete :class
  opts.each do |variable,value|
    self.send("#{variable}=",value)
  end
end