lib/transcriber/resource.rb in transcriber-0.0.12 vs lib/transcriber/resource.rb in transcriber-0.0.13

- old
+ new

@@ -9,10 +9,12 @@ cattr_writer :resource_name def initialize(attrs = {}) return if attrs.nil? or attrs.empty? + attrs = attrs.with_indifferent_access + self.class.keys.each do |key| __send__("#{key.name}=", key.from_hash(attrs[key.name])) if key.present?(self) end end @@ -63,9 +65,9 @@ key_input[last] = parsed_value else input.merge!(parsed_value) end end - input + input.with_indifferent_access end end end