Class: OAI::Provider::PartialResult
- Inherits:
-
Object
- Object
- OAI::Provider::PartialResult
- Defined in:
- lib/oai/provider/partial_result.rb
Overview
OAI::Provider::PartialResult
PartialResult is used for returning a set/page of results from a model that supports resumption tokens. It should contain and array of records, and a resumption token for getting the next set/page.
Instance Attribute Summary collapse
-
#records ⇒ Object
readonly
Returns the value of attribute records.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(records, token = nil) ⇒ PartialResult
constructor
A new instance of PartialResult.
Constructor Details
#initialize(records, token = nil) ⇒ PartialResult
Returns a new instance of PartialResult.
11 12 13 14 |
# File 'lib/oai/provider/partial_result.rb', line 11 def initialize(records, token = nil) @records = records @token = token end |
Instance Attribute Details
#records ⇒ Object (readonly)
Returns the value of attribute records.
9 10 11 |
# File 'lib/oai/provider/partial_result.rb', line 9 def records @records end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'lib/oai/provider/partial_result.rb', line 9 def token @token end |