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.20.6 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.20.4 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.20.3 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.20.2 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.19.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.18.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.18.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.17.2 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.17.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.17.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.16.2 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.16.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.16.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.15.4 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.15.3 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.15.2 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.15.1 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.15.0 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.22 lib/smartystreets_ruby_sdk/license_sender.rb
smartystreets_ruby_sdk-5.14.19 lib/smartystreets_ruby_sdk/license_sender.rb