Class: RuleDescription

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/ontology.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options, code)
 @name = name
 @conditions = conditions
 @options = options
 @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/cirrocumulus/ontology.rb', line 9

def code
  @code
end

#conditionsObject (readonly)

Returns the value of attribute conditions.



7
8
9
# File 'lib/cirrocumulus/ontology.rb', line 7

def conditions
  @conditions
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/cirrocumulus/ontology.rb', line 6

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/cirrocumulus/ontology.rb', line 8

def options
  @options
end

Instance Method Details

#==(other) ⇒ Object



18
19
20
# File 'lib/cirrocumulus/ontology.rb', line 18

def ==(other)
  name == other.name
end