Class: SmartyStreets::StaticCredentials
- Inherits:
-
Object
- Object
- SmartyStreets::StaticCredentials
- Defined in:
- lib/smartystreets_ruby_sdk/static_credentials.rb
Instance Method Summary collapse
-
#initialize(auth_id, auth_token) ⇒ StaticCredentials
constructor
A new instance of StaticCredentials.
- #sign(request) ⇒ Object
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 |