Class: SmartyStreets::StaticCredentials

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

Instance Method Summary collapse

Constructor Details

#initialize(auth_id, auth_token) ⇒ StaticCredentials

Returns a new instance of StaticCredentials.



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

def initialize(auth_id, auth_token)
  @auth_id = auth_id
  @auth_token = auth_token
end

Instance Method Details

#sign(request) ⇒ Object



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

def sign(request)
  request.parameters['auth-id'] = @auth_id
  request.parameters['auth-token'] = @auth_token
end