Class: Enstratus::Configuration
- Inherits:
-
Object
- Object
- Enstratus::Configuration
- Defined in:
- lib/enstratus/configuration.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/enstratus/configuration.rb', line 5 def initialize @access_key ||= '12345678' @secret_key ||= 'abcdefghi' @endpoint ||= 'https://api.enstratus.com' @version ||= '2012-02-29' @debug ||= false end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
3 4 5 |
# File 'lib/enstratus/configuration.rb', line 3 def access_key @access_key end |
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/enstratus/configuration.rb', line 3 def debug @debug end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/enstratus/configuration.rb', line 3 def endpoint @endpoint end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/enstratus/configuration.rb', line 3 def secret_key @secret_key end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/enstratus/configuration.rb', line 3 def version @version end |