Class: Songkick::Transport::HeaderDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/songkick/transport/header_decorator.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, headers) ⇒ HeaderDecorator

Returns a new instance of HeaderDecorator.



5
6
7
8
# File 'lib/songkick/transport/header_decorator.rb', line 5

def initialize(client, headers)
  @client  = client
  @headers = Headers.new(headers)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object (private)



20
21
22
# File 'lib/songkick/transport/header_decorator.rb', line 20

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