Class: Songkick::Transport::HeaderDecorator
- Inherits:
-
Object
- Object
- Songkick::Transport::HeaderDecorator
- Defined in:
- lib/songkick/transport/header_decorator.rb
Instance Method Summary collapse
-
#initialize(client, headers) ⇒ HeaderDecorator
constructor
A new instance of HeaderDecorator.
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 |