Sha256: fc40389ce3aef1956626a742745d4f1fb4fca97cbfd21ed338a69e9eb2dd7c85

Contents?: true

Size: 251 Bytes

Versions: 29

Compression:

Stored size: 251 Bytes

Contents

module SmartyStreets
  class SharedCredentials
    def initialize(id, host_name)
      @id = id
      @host_name = host_name
    end

    def sign(request)
      request.parameters['auth-id'] = @id
      request.referer = @host_name
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
smartystreets_ruby_sdk-5.9.2 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.9.1 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.9.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.8.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.7.1 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.7.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.6.2 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.6.1 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.6.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.5.4 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.5.3 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.5.2 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.5.1 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.5.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.4.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.3.3 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.3.2 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.3.1 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.3.0 lib/smartystreets_ruby_sdk/shared_credentials.rb
smartystreets_ruby_sdk-5.2.2 lib/smartystreets_ruby_sdk/shared_credentials.rb