Class: Songkick::Transport::Base::HeaderDecorator

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



144
145
146
# File 'lib/songkick/transport/base.rb', line 144

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

Instance Method Details

#do_verb(verb, path, params = {}, new_headers = {}, timeout = nil) ⇒ Object



140
141
142
# File 'lib/songkick/transport/base.rb', line 140

def do_verb(verb, path, params = {}, new_headers = {}, timeout = nil)
  client.do_verb(verb, path, params, Headers.new(headers).merge(new_headers), timeout)
end