class RenameParams::Converters::HashConverter
Public Class Methods
new(hash = {})
click to toggle source
# File lib/rename_params/converters/hash_converter.rb, line 4 def initialize(hash = {}) @hash = hash end
Public Instance Methods
convert(value)
click to toggle source
# File lib/rename_params/converters/hash_converter.rb, line 8 def convert(value) @hash.with_indifferent_access[value] || value end