Class: Songkick::Transport::Base::TimeoutDecorator

Inherits:
Struct
  • Object
show all
Includes:
API
Defined in:
lib/songkick/transport/base.rb

Instance Method Summary collapse

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



156
157
158
# File 'lib/songkick/transport/base.rb', line 156

def method_missing(*args, &block)
  client.__send__(*args, &block)
end

Instance Method Details

#do_verb(verb, path, params = {}, headers = {}, new_timeout = nil) ⇒ Object



152
153
154
# File 'lib/songkick/transport/base.rb', line 152

def do_verb(verb, path, params = {}, headers = {}, new_timeout = nil)
  client.do_verb(verb, path, params, headers, new_timeout || timeout)
end