Class: Mood

Inherits:
Object
  • Object
show all
Defined in:
lib/catlogic/mood.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(majortype, minortype, conclusiontype) ⇒ Mood

takes three propositionType objects



5
6
7
8
9
# File 'lib/catlogic/mood.rb', line 5

def initialize(majortype, minortype, conclusiontype)
  @majortype = majortype
  @minortype = minortype
  @conclusiontype = conclusiontype
end

Instance Attribute Details

#conclusiontypeObject (readonly)

Returns the value of attribute conclusiontype.



2
3
4
# File 'lib/catlogic/mood.rb', line 2

def conclusiontype
  @conclusiontype
end

#majortypeObject (readonly)

Returns the value of attribute majortype.



2
3
4
# File 'lib/catlogic/mood.rb', line 2

def majortype
  @majortype
end

#minortypeObject (readonly)

Returns the value of attribute minortype.



2
3
4
# File 'lib/catlogic/mood.rb', line 2

def minortype
  @minortype
end

Instance Method Details

#labelObject



11
12
13
# File 'lib/catlogic/mood.rb', line 11

def label
  "#{@majortype.label}#{@minortype.label}#{@conclusiontype.label}"
end