Class: SmartyStreets::SharedCredentials

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

Instance Method Summary collapse

Constructor Details

#initialize(id, host_name) ⇒ SharedCredentials

Returns a new instance of SharedCredentials.



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

def initialize(id, host_name)
  @id = id
  @host_name = host_name
end

Instance Method Details

#sign(request) ⇒ Object



8
9
10
11
# File 'lib/smartystreets_ruby_sdk/shared_credentials.rb', line 8

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