Class: Userbin::Configuration
- Inherits:
-
Object
- Object
- Userbin::Configuration
- Defined in:
- lib/userbin/configuration.rb
Instance Attribute Summary collapse
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
Instance Method Summary collapse
- #api_secret ⇒ Object
- #api_secret=(value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
25 26 27 |
# File 'lib/userbin/configuration.rb', line 25 def initialize self.request_timeout = 30.0 end |
Instance Attribute Details
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
23 24 25 |
# File 'lib/userbin/configuration.rb', line 23 def request_timeout @request_timeout end |
Instance Method Details
#api_secret ⇒ Object
29 30 31 |
# File 'lib/userbin/configuration.rb', line 29 def api_secret ENV['USERBIN_API_SECRET'] || @_api_secret || '' end |
#api_secret=(value) ⇒ Object
33 34 35 |
# File 'lib/userbin/configuration.rb', line 33 def api_secret=(value) @_api_secret = value end |