Class: OAI::GetRecordResponse

Inherits:
Response
  • Object
show all
Includes:
XPath
Defined in:
lib/oai/client/get_record.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#doc, #resumption_block, #resumption_token

Instance Method Summary collapse

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

#recordObject

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/oai/client/get_record.rb', line 11

def deleted?
  return @record.deleted?
end