Class: YmaParser::ResultType
- Inherits:
-
Object
- Object
- YmaParser::ResultType
- Defined in:
- lib/yma_parser.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #filtered_count ⇒ Object
-
#initialize(type, xml) ⇒ ResultType
constructor
A new instance of ResultType.
- #total_count ⇒ Object
- #word_list ⇒ Object
Constructor Details
#initialize(type, xml) ⇒ ResultType
Returns a new instance of ResultType.
29 30 31 32 |
# File 'lib/yma_parser.rb', line 29 def initialize(type, xml) @type = type @xml = xml end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
27 28 29 |
# File 'lib/yma_parser.rb', line 27 def type @type end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
27 28 29 |
# File 'lib/yma_parser.rb', line 27 def xml @xml end |
Instance Method Details
#filtered_count ⇒ Object
38 39 40 |
# File 'lib/yma_parser.rb', line 38 def filtered_count count(:filtered_count) end |
#total_count ⇒ Object
34 35 36 |
# File 'lib/yma_parser.rb', line 34 def total_count count(:total_count) end |