Class: Songkick::Transport::Base::BasicAuthDecorator
- Inherits:
-
Struct
- Object
- Struct
- Songkick::Transport::Base::BasicAuthDecorator
- Includes:
- API
- Defined in:
- lib/songkick/transport/base.rb
Instance Method Summary collapse
- #do_verb(verb, path, 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
181 182 183 |
# File 'lib/songkick/transport/base.rb', line 181 def method_missing(*args, &block) client.__send__(*args, &block) end |
Instance Method Details
#do_verb(verb, path, params = {}, headers = {}, timeout = nil) ⇒ Object
176 177 178 179 |
# File 'lib/songkick/transport/base.rb', line 176 def do_verb(verb, path, params = {}, headers = {}, timeout = nil) auth_headers = Authentication.basic_auth_headers(credentials) client.do_verb(verb, path, params, auth_headers.merge(headers), timeout) end |