Class: IronNails::View::TimedCommand
- Defined in:
- lib/ironnails/view/commands/timed_command.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#timer_name ⇒ Object
readonly
gets the name to use for the timer.
Attributes inherited from Command
#action, #callback, #condition, #controller, #mode, #name, #view
Instance Method Summary collapse
- #nails_base_command_read_options ⇒ Object
- #read_options(options) ⇒ Object
-
#start_timer ⇒ Object
This starts the timer in the view proxy.
-
#stop_timer ⇒ Object
This stops the timer in the view proxy.
Methods inherited from Command
#<=>, #==, #asynchronous?, #attached?, #can_execute?, #changed?, #execute, #has_callback?, #initialize, #refresh_view, #synchronise_viewmodel_with_controller
Methods included from Core::Observable
#add_observer, #count_observers, #delete_observer, #delete_observers, #notify_observers
Methods included from Logging::ClassLogger
Constructor Details
This class inherits a constructor from IronNails::View::Command
Instance Attribute Details
#interval ⇒ Object
Returns the value of attribute interval.
10 11 12 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 10 def interval @interval end |
#timer_name ⇒ Object (readonly)
gets the name to use for the timer
8 9 10 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 8 def timer_name @timer_name end |
Instance Method Details
#nails_base_command_read_options ⇒ Object
12 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 12 alias_method :nails_base_command_read_options, :read_options |
#read_options(options) ⇒ Object
14 15 16 17 18 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 14 def () @timer_name = get_timer_name end |
#start_timer ⇒ Object
This starts the timer in the view proxy
26 27 28 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 26 def start_timer view.start_timer self end |
#stop_timer ⇒ Object
This stops the timer in the view proxy
21 22 23 |
# File 'lib/ironnails/view/commands/timed_command.rb', line 21 def stop_timer view.stop_timer self end |