Class: Getto::Roda::Decode::Get
- Inherits:
-
Object
- Object
- Getto::Roda::Decode::Get
- Defined in:
- lib/getto/roda/decode.rb
Instance Method Summary collapse
-
#initialize(query_string) ⇒ Get
constructor
A new instance of Get.
- #to_h ⇒ Object
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_h ⇒ Object
26 27 28 |
# File 'lib/getto/roda/decode.rb', line 26 def to_h ::Rack::Utils.parse_nested_query(@query_string) end |