Class: ApiSignature::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/api_signature/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_formatObject

Returns the value of attribute datetime_format.



5
6
7
# File 'lib/api_signature/configuration.rb', line 5

def datetime_format
  @datetime_format
end

#serviceObject

Returns the value of attribute service.



5
6
7
# File 'lib/api_signature/configuration.rb', line 5

def service
  @service
end

#signature_headerObject

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_ttlObject

Returns the value of attribute signature_ttl.



5
6
7
# File 'lib/api_signature/configuration.rb', line 5

def signature_ttl
  @signature_ttl
end