Class: Songkick::Transport::Base::ParamsDecorator
- Inherits:
-
Struct
- Object
- Struct
- Songkick::Transport::Base::ParamsDecorator
- Includes:
- API
- Defined in:
- lib/songkick/transport/base.rb
Instance Method Summary collapse
- #do_verb(verb, path, new_params = {}, headers = {}, timeout = nil) ⇒ Object
- #method_missing(*args, &block) ⇒ Object
Methods included from API
#delete, #get, #head, #options, #patch, #post, #put, #with_basic_auth, #with_headers, #with_params, #with_timeout
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
168 169 170 |
# File 'lib/songkick/transport/base.rb', line 168 def method_missing(*args, &block) client.__send__(*args, &block) end |
Instance Method Details
#do_verb(verb, path, new_params = {}, headers = {}, timeout = nil) ⇒ Object
164 165 166 |
# File 'lib/songkick/transport/base.rb', line 164 def do_verb(verb, path, new_params = {}, headers = {}, timeout = nil) client.do_verb(verb, path, params.merge(new_params), headers, timeout) end |