Class: ChronoForge::Dashboard::Configuration
- Inherits:
-
Object
- Object
- ChronoForge::Dashboard::Configuration
- Defined in:
- lib/chrono_forge/dashboard/configuration.rb
Instance Attribute Summary collapse
-
#auth_hook ⇒ Object
readonly
Returns the value of attribute auth_hook.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#http_basic ⇒ Object
Returns the value of attribute http_basic.
-
#long_wait_threshold ⇒ Object
Returns the value of attribute long_wait_threshold.
-
#page_size ⇒ Object
Returns the value of attribute page_size.
-
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
-
#polling_interval_options ⇒ Object
Returns the value of attribute polling_interval_options.
Instance Method Summary collapse
- #authenticate(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 18 def initialize @http_basic = nil @authentication = nil @auth_hook = nil @polling_interval = 5 # Selectable auto-refresh intervals (seconds; 0 = off) for the nav control. @polling_interval_options = [0, 5, 10, 30, 60, 300] @page_size = 50 @long_wait_threshold = 3600 end |
Instance Attribute Details
#auth_hook ⇒ Object (readonly)
Returns the value of attribute auth_hook.
15 16 17 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 15 def auth_hook @auth_hook end |
#authentication ⇒ Object
Returns the value of attribute authentication.
14 15 16 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 14 def authentication @authentication end |
#http_basic ⇒ Object
Returns the value of attribute http_basic.
14 15 16 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 14 def http_basic @http_basic end |
#long_wait_threshold ⇒ Object
Returns the value of attribute long_wait_threshold.
16 17 18 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 16 def long_wait_threshold @long_wait_threshold end |
#page_size ⇒ Object
Returns the value of attribute page_size.
16 17 18 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 16 def page_size @page_size end |
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
16 17 18 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 16 def polling_interval @polling_interval end |
#polling_interval_options ⇒ Object
Returns the value of attribute polling_interval_options.
16 17 18 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 16 def @polling_interval_options end |
Instance Method Details
#authenticate(&block) ⇒ Object
29 |
# File 'lib/chrono_forge/dashboard/configuration.rb', line 29 def authenticate(&block) = @auth_hook = block |