Class: Waitmate::Configuration
- Inherits:
-
Object
- Object
- Waitmate::Configuration
- Defined in:
- lib/waitmate/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
-
#queue_ttl ⇒ Object
Returns the value of attribute queue_ttl.
-
#ticket_ttl ⇒ Object
Returns the value of attribute ticket_ttl.
-
#waiting_room_path ⇒ Object
Returns the value of attribute waiting_room_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 |
# File 'lib/waitmate/configuration.rb', line 7 def initialize @adapter = :redis @queue_ttl = 300 @polling_interval = 5 @ticket_ttl = 120 @waiting_room_path = "/waitmate/room" end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
5 6 7 |
# File 'lib/waitmate/configuration.rb', line 5 def adapter @adapter end |
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
5 6 7 |
# File 'lib/waitmate/configuration.rb', line 5 def polling_interval @polling_interval end |
#queue_ttl ⇒ Object
Returns the value of attribute queue_ttl.
5 6 7 |
# File 'lib/waitmate/configuration.rb', line 5 def queue_ttl @queue_ttl end |
#ticket_ttl ⇒ Object
Returns the value of attribute ticket_ttl.
5 6 7 |
# File 'lib/waitmate/configuration.rb', line 5 def ticket_ttl @ticket_ttl end |
#waiting_room_path ⇒ Object
Returns the value of attribute waiting_room_path.
5 6 7 |
# File 'lib/waitmate/configuration.rb', line 5 def waiting_room_path @waiting_room_path end |