class ActiveFlags::Handler::FlagMappers::KeyValueMapper
Public Class Methods
new(hash_to_map)
click to toggle source
# File lib/active_flags/handler/flag_mappers/key_value_mapper.rb, line 5 def initialize(hash_to_map) @hash_to_map = hash_to_map end
remap(hash_of_flags)
click to toggle source
# File lib/active_flags/handler/flag_mappers/key_value_mapper.rb, line 15 def self.remap(hash_of_flags) new(hash_of_flags).remap end
Public Instance Methods
remap()
click to toggle source
# File lib/active_flags/handler/flag_mappers/key_value_mapper.rb, line 9 def remap @hash_to_map.map do |key, value| { key: key, value: value } end end