Class: SharedCredentials
- Inherits:
-
Object
- Object
- SharedCredentials
- Defined in:
- lib/smartystreets_ruby_sdk/shared_credentials.rb
Instance Method Summary collapse
-
#initialize(id, host_name) ⇒ SharedCredentials
constructor
A new instance of SharedCredentials.
- #sign(request) ⇒ Object
Constructor Details
#initialize(id, host_name) ⇒ SharedCredentials
Returns a new instance of SharedCredentials.
2 3 4 5 |
# File 'lib/smartystreets_ruby_sdk/shared_credentials.rb', line 2 def initialize(id, host_name) @id = id @host_name = host_name end |
Instance Method Details
#sign(request) ⇒ Object
7 8 9 10 |
# File 'lib/smartystreets_ruby_sdk/shared_credentials.rb', line 7 def sign(request) request.parameters['auth-id'] = @id request.referer = @host_name end |