Class: Thunderer::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#asyncObject

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

Parameters:

  • value

    the value to set the attribute environment to.



4
5
6
# File 'lib/thunderer/configuration.rb', line 4

def environment=(value)
  @environment = value
end

#local_server_urlObject

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_adapterObject

Returns the value of attribute queue_adapter.



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

def queue_adapter
  @queue_adapter
end

#secret_tokenObject

Returns the value of attribute secret_token.



9
10
11
# File 'lib/thunderer/configuration.rb', line 9

def secret_token
  @secret_token
end

#serverObject

Returns the value of attribute server.



6
7
8
# File 'lib/thunderer/configuration.rb', line 6

def server
  @server
end

#signature_expirationObject

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