Class: SmartyStreets::CustomHeaderSender

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/custom_header_sender.rb

Instance Method Summary collapse

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