Class: TriggerDescription
- Inherits:
-
Object
- Object
- TriggerDescription
- Defined in:
- lib/cirrocumulus/ontology.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#fact ⇒ Object
readonly
Returns the value of attribute fact.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, fact, action, code) ⇒ TriggerDescription
constructor
A new instance of TriggerDescription.
Constructor Details
#initialize(name, fact, action, code) ⇒ TriggerDescription
Returns a new instance of TriggerDescription.
26 27 28 29 30 31 |
# File 'lib/cirrocumulus/ontology.rb', line 26 def initialize(name, fact, action, code) @name = name @fact = fact @action = action @code = code end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
24 25 26 |
# File 'lib/cirrocumulus/ontology.rb', line 24 def action @action end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/cirrocumulus/ontology.rb', line 24 def code @code end |
#fact ⇒ Object (readonly)
Returns the value of attribute fact.
24 25 26 |
# File 'lib/cirrocumulus/ontology.rb', line 24 def fact @fact end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/cirrocumulus/ontology.rb', line 24 def name @name end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 |
# File 'lib/cirrocumulus/ontology.rb', line 33 def ==(other) name == other.name end |