Class: NTimeLine::CategoryResponse

Inherits:
Array
  • Object
show all
Defined in:
lib/ntimeline/category.rb

Overview

CategoryResponse is a list of categories.

Instance Method Summary collapse

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