Class: Getto::Roda::Decode::Get

Inherits:
Object
  • Object
show all
Defined in:
lib/getto/roda/decode.rb

Instance Method Summary collapse

Constructor Details

#initialize(query_string) ⇒ Get

Returns a new instance of Get.



22
23
24
# File 'lib/getto/roda/decode.rb', line 22

def initialize(query_string)
  @query_string = query_string
end

Instance Method Details

#to_hObject



26
27
28
# File 'lib/getto/roda/decode.rb', line 26

def to_h
  ::Rack::Utils.parse_nested_query(@query_string)
end