Class: Kamelopard::VSRAction
Overview
Viewsyncrelay action
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#exit_action ⇒ Object
Returns the value of attribute exit_action.
-
#fail_count ⇒ Object
Returns the value of attribute fail_count.
-
#initially_disabled ⇒ Object
Returns the value of attribute initially_disabled.
-
#input ⇒ Object
Returns the value of attribute input.
-
#name ⇒ Object
Returns the value of attribute name.
-
#repeat ⇒ Object
Returns the value of attribute repeat.
-
#reset_constraints ⇒ Object
Returns the value of attribute reset_constraints.
-
#tour_name ⇒ Object
Returns the value of attribute tour_name.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ VSRAction
constructor
XXX Consider adding some constraints, so that things like @name and @action don’t go nil XXX Also ensure constraints and reset_constraints are hashes, containing reasonable values, and reasonable keys (‘latitude’ vs. :latitude, for instance).
- #to_hash ⇒ Object
Methods inherited from Object
#_alternate_to_kml, #change, #master_only?, #to_kml
Constructor Details
#initialize(name, options = {}) ⇒ VSRAction
XXX Consider adding some constraints, so that things like @name and @action don’t go nil XXX Also ensure constraints and reset_constraints are hashes,
containing reasonable values, and reasonable keys ('latitude' vs.
:latitude, for instance)
2455 2456 2457 2458 2459 2460 2461 2462 2463 |
# File 'lib/kamelopard/classes.rb', line 2455 def initialize(name, = {}) @name = name @constraints = {} @repeat = 'DEFAULT' @input = 'ALL' super() DocumentHolder.instance.current_document.vsr_actions << self end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def action @action end |
#constraints ⇒ Object
Returns the value of attribute constraints.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def constraints @constraints end |
#exit_action ⇒ Object
Returns the value of attribute exit_action.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def exit_action @exit_action end |
#fail_count ⇒ Object
Returns the value of attribute fail_count.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def fail_count @fail_count end |
#initially_disabled ⇒ Object
Returns the value of attribute initially_disabled.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def initially_disabled @initially_disabled end |
#input ⇒ Object
Returns the value of attribute input.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def input @input end |
#name ⇒ Object
Returns the value of attribute name.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def name @name end |
#repeat ⇒ Object
Returns the value of attribute repeat.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def repeat @repeat end |
#reset_constraints ⇒ Object
Returns the value of attribute reset_constraints.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def reset_constraints @reset_constraints end |
#tour_name ⇒ Object
Returns the value of attribute tour_name.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def tour_name @tour_name end |
#verbose ⇒ Object
Returns the value of attribute verbose.
2447 2448 2449 |
# File 'lib/kamelopard/classes.rb', line 2447 def verbose @verbose end |
Instance Method Details
#to_hash ⇒ Object
2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 |
# File 'lib/kamelopard/classes.rb', line 2465 def to_hash a = {} a['name'] = @name unless @name.nil? a['id'] = @id unless @id.nil? a['input'] = @input unless @input.nil? a['tour_name'] = @tour_name unless @tour_name.nil? a['verbose'] = @verbose unless @verbose.nil? a['fail_count'] = @fail_count unless @fail_count.nil? a['action'] = @action unless @action.nil? a['exit_action'] = @exit_action unless @exit_action.nil? a['repeat'] = @repeat unless @repeat.nil? a['initially_disabled'] = @initially_disabled unless @initially_disabled.nil? a['constraints'] = @constraints unless @constraints.nil? a['reset_constraints'] = @reset_constraints unless @reset_constraints.nil? a end |