Class: Feat::Configuration
- Inherits:
-
Object
- Object
- Feat::Configuration
- Defined in:
- lib/feat/configuration.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#connection_pool ⇒ Object
Returns the value of attribute connection_pool.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/feat/configuration.rb', line 8 def initialize @redis = {} @server = { url: 'https://www.feathq.com/api/record' } @connection_pool = { size: 2, timeout: 2 } end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
6 7 8 |
# File 'lib/feat/configuration.rb', line 6 def app_id @app_id end |
#connection_pool ⇒ Object
Returns the value of attribute connection_pool.
5 6 7 |
# File 'lib/feat/configuration.rb', line 5 def connection_pool @connection_pool end |
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/feat/configuration.rb', line 3 def redis @redis end |
#server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/feat/configuration.rb', line 4 def server @server end |