Class: ChronoForge::Dashboard::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hookObject (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

#authenticationObject

Returns the value of attribute authentication.



14
15
16
# File 'lib/chrono_forge/dashboard/configuration.rb', line 14

def authentication
  @authentication
end

#http_basicObject

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_thresholdObject

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_sizeObject

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_intervalObject

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_optionsObject

Returns the value of attribute polling_interval_options.



16
17
18
# File 'lib/chrono_forge/dashboard/configuration.rb', line 16

def polling_interval_options
  @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