Class: SummaryJudgement::Descriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/summary_judgement/descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(phrase, options = {}) ⇒ Descriptor

Returns a new instance of Descriptor.



5
6
7
8
# File 'lib/summary_judgement/descriptor.rb', line 5

def initialize(phrase, options = {})
  @phrase = phrase
  @condition = options[:if]
end

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition.



3
4
5
# File 'lib/summary_judgement/descriptor.rb', line 3

def condition
  @condition
end

#phraseObject (readonly)

Returns the value of attribute phrase.



3
4
5
# File 'lib/summary_judgement/descriptor.rb', line 3

def phrase
  @phrase
end