Class: Thunderer::Configuration
- Inherits:
-
Object
- Object
- Thunderer::Configuration
- Defined in:
- lib/thunderer/configuration.rb
Instance Attribute Summary collapse
-
#async ⇒ Object
Returns the value of attribute async.
-
#environment ⇒ Object
writeonly
Sets the attribute environment.
-
#local_server_url ⇒ Object
Returns the value of attribute local_server_url.
-
#queue_adapter ⇒ Object
Returns the value of attribute queue_adapter.
-
#secret_token ⇒ Object
Returns the value of attribute secret_token.
-
#server ⇒ Object
Returns the value of attribute server.
-
#signature_expiration ⇒ Object
Returns the value of attribute signature_expiration.
Instance Method Summary collapse
- #config_file_path=(value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/thunderer/configuration.rb', line 12 def initialize @config_file_path = '' @queue_adapter = nil @server = nil @secret_token = nil @signature_expiration = 3600 @local_server_url = nil @async = false @environment = nil end |
Instance Attribute Details
#async ⇒ Object
Returns the value of attribute async.
8 9 10 |
# File 'lib/thunderer/configuration.rb', line 8 def async @async end |
#environment=(value) ⇒ Object (writeonly)
Sets the attribute environment
4 5 6 |
# File 'lib/thunderer/configuration.rb', line 4 def environment=(value) @environment = value end |
#local_server_url ⇒ Object
Returns the value of attribute local_server_url.
7 8 9 |
# File 'lib/thunderer/configuration.rb', line 7 def local_server_url @local_server_url end |
#queue_adapter ⇒ Object
Returns the value of attribute queue_adapter.
5 6 7 |
# File 'lib/thunderer/configuration.rb', line 5 def queue_adapter @queue_adapter end |
#secret_token ⇒ Object
Returns the value of attribute secret_token.
9 10 11 |
# File 'lib/thunderer/configuration.rb', line 9 def secret_token @secret_token end |
#server ⇒ Object
Returns the value of attribute server.
6 7 8 |
# File 'lib/thunderer/configuration.rb', line 6 def server @server end |
#signature_expiration ⇒ Object
Returns the value of attribute signature_expiration.
10 11 12 |
# File 'lib/thunderer/configuration.rb', line 10 def signature_expiration @signature_expiration end |
Instance Method Details
#config_file_path=(value) ⇒ Object
23 24 25 |
# File 'lib/thunderer/configuration.rb', line 23 def config_file_path=(value) load_configuration(value, @environment) end |