Class: SmartyStreets::LicenseSender

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

Instance Method Summary collapse

Constructor Details

#initialize(inner, licenses) ⇒ LicenseSender

Returns a new instance of LicenseSender.



3
4
5
6
# File 'lib/smartystreets_ruby_sdk/license_sender.rb', line 3

def initialize(inner, licenses)
  @inner = inner
  @licenses = licenses
end

Instance Method Details

#send(request) ⇒ Object



8
9
10
11
12
13
# File 'lib/smartystreets_ruby_sdk/license_sender.rb', line 8

def send(request)
  if @licenses.length > 0
    request.parameters['license'] = @licenses.join(',')
  end
  @inner.send(request)
end