Class: OAI::GetRecordResponse
- Includes:
- XPath
- Defined in:
- lib/oai/client/get_record.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
Returns the value of attribute record.
Attributes inherited from Response
#doc, #resumption_block, #resumption_token
Instance Method Summary collapse
- #deleted? ⇒ Boolean
-
#initialize(doc) ⇒ GetRecordResponse
constructor
A new instance of GetRecordResponse.
Methods included from XPath
#get_attribute, #xpath, #xpath_all, #xpath_first
Constructor Details
#initialize(doc) ⇒ GetRecordResponse
Returns a new instance of GetRecordResponse.
6 7 8 9 |
# File 'lib/oai/client/get_record.rb', line 6 def initialize(doc) super doc @record = OAI::Record.new(xpath_first(doc, './/GetRecord/record')) end |
Instance Attribute Details
#record ⇒ Object
Returns the value of attribute record.
4 5 6 |
# File 'lib/oai/client/get_record.rb', line 4 def record @record end |
Instance Method Details
#deleted? ⇒ Boolean
11 12 13 |
# File 'lib/oai/client/get_record.rb', line 11 def deleted? return @record.deleted? end |