Class: Userbin::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_timeoutObject

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_secretObject



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