Class: SmartyStreets::SharedCredentials
- Inherits:
-
Object
- Object
- SmartyStreets::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.
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['key'] = @id request.referer = @host_name end |