Class: SmartyStreets::LicenseSender
- Inherits:
-
Object
- Object
- SmartyStreets::LicenseSender
- Defined in:
- lib/smartystreets_ruby_sdk/license_sender.rb
Instance Method Summary collapse
-
#initialize(inner, licenses) ⇒ LicenseSender
constructor
A new instance of LicenseSender.
- #send(request) ⇒ Object
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 |