Class: RuleDescription
- Inherits:
-
Object
- Object
- RuleDescription
- Defined in:
- lib/cirrocumulus/ontology.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, conditions, options, code) ⇒ RuleDescription
constructor
A new instance of RuleDescription.
Constructor Details
#initialize(name, conditions, options, code) ⇒ RuleDescription
Returns a new instance of RuleDescription.
11 12 13 14 15 16 |
# File 'lib/cirrocumulus/ontology.rb', line 11 def initialize(name, conditions, , code) @name = name @conditions = conditions @options = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/cirrocumulus/ontology.rb', line 9 def code @code end |
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
7 8 9 |
# File 'lib/cirrocumulus/ontology.rb', line 7 def conditions @conditions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cirrocumulus/ontology.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/cirrocumulus/ontology.rb', line 8 def @options end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/cirrocumulus/ontology.rb', line 18 def ==(other) name == other.name end |