Class: Addressable::URI
- Defined in:
- lib/eac_ruby_utils/patches/addressable/uri/query_value.rb
Instance Method Summary collapse
Instance Method Details
#hash_query_values ⇒ ActiveSupport:HashWithIndifferentAccess
8 9 10 |
# File 'lib/eac_ruby_utils/patches/addressable/uri/query_value.rb', line 8 def hash_query_values (query_values || {}).with_indifferent_access end |
#query_value(*args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/eac_ruby_utils/patches/addressable/uri/query_value.rb', line 12 def query_value(*args) if args.count == 1 query_value_get(*args) elsif args.count == 2 query_value_set(*args) else raise ::ArgumentError, "#{object.class}.#{__method__}: wrong number of arguments " \ "(given #{args.count}, expected 1..2)" end end |