Class: Julius::Message::Recogout::Shypo
- Inherits:
-
Julius::Message
- Object
- Julius::Message
- Julius::Message::Recogout::Shypo
- Includes:
- Enumerable
- Defined in:
- lib/julius/message.rb
Defined Under Namespace
Classes: Whypo
Instance Attribute Summary collapse
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(element) ⇒ Shypo
constructor
A new instance of Shypo.
Methods inherited from Julius::Message
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
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
40 41 42 |
# File 'lib/julius/message.rb', line 40 def rank @rank end |
#score ⇒ Object (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 |