minor code cleanup
This commit is contained in:
parent
4fbbe3ceec
commit
39ba34539a
|
@ -19,8 +19,8 @@ module Hydra #:nodoc:
|
||||||
# are attributes of the message and the values are
|
# are attributes of the message and the values are
|
||||||
# set to the attribute.
|
# set to the attribute.
|
||||||
def initialize(opts = {})
|
def initialize(opts = {})
|
||||||
opts.each do |k,v|
|
opts.each do |variable,value|
|
||||||
self.send("#{k}=",v)
|
self.send("#{variable}=",value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -35,8 +35,7 @@ module Hydra #:nodoc:
|
||||||
# This is really just a string representation of a hash
|
# This is really just a string representation of a hash
|
||||||
# with no newlines. It adds in the class automatically
|
# with no newlines. It adds in the class automatically
|
||||||
def serialize(opts = {})
|
def serialize(opts = {})
|
||||||
opts[:class] = self.class
|
opts.merge({:class => self.class}).inspect
|
||||||
opts.inspect
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue