Class: Julius::Message::Recogout::Shypo

Inherits:
Julius::Message show all
Includes:
Enumerable
Defined in:
lib/julius/message.rb

Defined Under Namespace

Classes: Whypo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Julius::Message

init, #name

Constructor Details

#initialize(element) ⇒ Shypo

Returns a new instance of Shypo.



34
35
36
37
38
39
# File 'lib/julius/message.rb', line 34

def initialize(element)
  @whypo_list = element.elements.map do |element|
    Whypo.new(element)
  end
  super(element)
end

Instance Attribute Details

#rankObject (readonly)

Returns the value of attribute rank.



40
41
42
# File 'lib/julius/message.rb', line 40

def rank
  @rank
end

#scoreObject (readonly)

Returns the value of attribute score.



40
41
42
# File 'lib/julius/message.rb', line 40

def score
  @score
end

Instance Method Details

#each(&block) ⇒ Object



42
43
44
45
46
# File 'lib/julius/message.rb', line 42

def each(&block)
  return self.to_enum unless block_given?
  @whypo_list.each(&block)
  self
end