Class: NTimeLine::CategoryResponse
- Inherits:
-
Array
- Object
- Array
- NTimeLine::CategoryResponse
- Defined in:
- lib/ntimeline/category.rb
Overview
CategoryResponse is a list of categories.
Instance Method Summary collapse
-
#initialize(doc) ⇒ CategoryResponse
constructor
A new instance of CategoryResponse.
Constructor Details
#initialize(doc) ⇒ CategoryResponse
Returns a new instance of CategoryResponse.
18 19 20 21 22 23 |
# File 'lib/ntimeline/category.rb', line 18 def initialize(doc) super doc.root.each_element("/response/result/categories/category") do |category| self << Category.from_xml(category) end end |