Class: Colossus::Configuration

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

Overview

Handles all the configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
# File 'lib/colossus/configuration.rb', line 9

def initialize
  @ttl = 10
  @seconds_before_ttl_check = 2
  @engine = Colossus::Engine::MemoryThreadSafe
  @secret_key = ''
  @writer_token = ''
end

Instance Attribute Details

#engineObject

Returns the value of attribute engine.



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

def engine
  @engine
end

#seconds_before_ttl_checkObject

Returns the value of attribute seconds_before_ttl_check.



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

def seconds_before_ttl_check
  @seconds_before_ttl_check
end

#secret_keyObject

Returns the value of attribute secret_key.



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

def secret_key
  @secret_key
end

#ttlObject

Returns the value of attribute ttl.



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

def ttl
  @ttl
end

#writer_tokenObject

Returns the value of attribute writer_token.



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

def writer_token
  @writer_token
end