Class: InstDataShipper::Destinations::ConfigURI
- Inherits:
-
Object
- Object
- InstDataShipper::Destinations::ConfigURI
- Defined in:
- lib/inst_data_shipper/destinations/base.rb
Instance Method Summary collapse
- #hash_params ⇒ Object
-
#initialize(uri) ⇒ ConfigURI
constructor
A new instance of ConfigURI.
- #params ⇒ Object
Constructor Details
#initialize(uri) ⇒ ConfigURI
Returns a new instance of ConfigURI.
109 110 111 |
# File 'lib/inst_data_shipper/destinations/base.rb', line 109 def initialize(uri) @uri = uri end |
Instance Method Details
#hash_params ⇒ Object
120 121 122 |
# File 'lib/inst_data_shipper/destinations/base.rb', line 120 def hash_params @hash_params ||= ((fragment.present? && fragment.match?(/^\w+=/) && Rack::Utils.parse_nested_query(fragment).with_indifferent_access).presence || fragment || nil)&.freeze end |
#params ⇒ Object
116 117 118 |
# File 'lib/inst_data_shipper/destinations/base.rb', line 116 def params @params ||= (query.present? ? Rack::Utils.parse_nested_query(query).with_indifferent_access : {}).freeze end |