Class: TriggerDescription

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



24
25
26
# File 'lib/cirrocumulus/ontology.rb', line 24

def action
  @action
end

#codeObject (readonly)

Returns the value of attribute code.



24
25
26
# File 'lib/cirrocumulus/ontology.rb', line 24

def code
  @code
end

#factObject (readonly)

Returns the value of attribute fact.



24
25
26
# File 'lib/cirrocumulus/ontology.rb', line 24

def fact
  @fact
end

#nameObject (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