Module: MailReceiver::Encoder

Defined in:
lib/mail-receiver/encoder.rb

Class Method Summary collapse

Class Method Details

.decode(query) ⇒ Object



11
12
13
# File 'lib/mail-receiver/encoder.rb', line 11

def decode(query)
 Rack::Utils.parse_query(query).deep_symbolize_keys
end

.encode(hash) ⇒ Object



7
8
9
# File 'lib/mail-receiver/encoder.rb', line 7

def encode(hash)
  hash.to_query
end