Class: ApiSignature::Configuration
- Inherits:
-
Object
- Object
- ApiSignature::Configuration
- Defined in:
- lib/api_signature/configuration.rb
Instance Attribute Summary collapse
-
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
-
#service ⇒ Object
Returns the value of attribute service.
-
#signature_header ⇒ Object
Returns the value of attribute signature_header.
-
#signature_ttl ⇒ Object
Returns the value of attribute signature_ttl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/api_signature/configuration.rb', line 7 def initialize @signature_ttl = 5 * 60 @datetime_format = '%Y-%m-%dT%H:%M:%S.%L%z' @signature_header = 'authorization' @service = 'web' end |
Instance Attribute Details
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
5 6 7 |
# File 'lib/api_signature/configuration.rb', line 5 def datetime_format @datetime_format end |
#service ⇒ Object
Returns the value of attribute service.
5 6 7 |
# File 'lib/api_signature/configuration.rb', line 5 def service @service end |
#signature_header ⇒ Object
Returns the value of attribute signature_header.
5 6 7 |
# File 'lib/api_signature/configuration.rb', line 5 def signature_header @signature_header end |
#signature_ttl ⇒ Object
Returns the value of attribute signature_ttl.
5 6 7 |
# File 'lib/api_signature/configuration.rb', line 5 def signature_ttl @signature_ttl end |