lib/punchblock/component/asterisk/ami/action.rb in punchblock-1.5.3 vs lib/punchblock/component/asterisk/ami/action.rb in punchblock-1.6.0

- old
+ new

@@ -26,11 +26,11 @@ ## # @return [Hash] hash of key-value pairs of params # def params_hash params.inject({}) do |hash, param| - hash[param.name] = param.value + hash[param.name.downcase.gsub('-', '_').to_sym] = param.value hash end end ## @@ -102,10 +102,10 @@ ## # @return [Hash] hash of key-value pairs of attributes # def attributes_hash attributes.inject({}) do |hash, attribute| - hash[attribute.name] = attribute.value + hash[attribute.name.downcase.gsub('-', '_').to_sym] = attribute.value hash end end ##