Class: NDLSearch::SearchResult
- Inherits:
-
Object
- Object
- NDLSearch::SearchResult
- Defined in:
- lib/ndl_search.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(xml) ⇒ SearchResult
constructor
A new instance of SearchResult.
- #items ⇒ Object
Constructor Details
#initialize(xml) ⇒ SearchResult
Returns a new instance of SearchResult.
34 35 36 |
# File 'lib/ndl_search.rb', line 34 def initialize(xml) @resource = xml end |
Instance Attribute Details
#resource ⇒ Object
Returns the value of attribute resource.
32 33 34 |
# File 'lib/ndl_search.rb', line 32 def resource @resource end |