Sha256: 8f42a7e2d0a92f68e9bef28b387b69ebb76a4c7a34024958c6151574f7f01797

Contents?: true

Size: 303 Bytes

Versions: 47

Compression:

Stored size: 303 Bytes

Contents

module SmartyStreets
  class LicenseSender
    def initialize(inner, licenses)
      @inner = inner
      @licenses = licenses
    end

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
smartystreets_ruby_sdk-5.14.18 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.17 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.14 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.13 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-0.0.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.11 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.10 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.9 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.8 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.7 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.6 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.5 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.4 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.3 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.13.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.12.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.12.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.11.2 lib/smartystreets_ruby_sdk/license_sender.rb