Class: SmartyStreets::CustomHeaderSender
- Inherits:
-
Object
- Object
- SmartyStreets::CustomHeaderSender
- Defined in:
- lib/smartystreets_ruby_sdk/custom_header_sender.rb
Instance Method Summary collapse
-
#initialize(inner, header) ⇒ CustomHeaderSender
constructor
A new instance of CustomHeaderSender.
- #send(request) ⇒ Object
Constructor Details
#initialize(inner, header) ⇒ CustomHeaderSender
Returns a new instance of CustomHeaderSender.
3 4 5 6 |
# File 'lib/smartystreets_ruby_sdk/custom_header_sender.rb', line 3 def initialize(inner, header) @inner = inner @header = header end |
Instance Method Details
#send(request) ⇒ Object
8 9 10 11 |
# File 'lib/smartystreets_ruby_sdk/custom_header_sender.rb', line 8 def send(request) request.header = @header @inner.send(request) end |