Class: WCAPI::Record

Inherits:
Object
  • Object
show all
Includes:
XPath
Defined in:
lib/wcapi/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XPath

#get_attribute, #xpath, #xpath_all, #xpath_first, #xpath_get_all_text, #xpath_get_name, #xpath_get_text

Constructor Details

#initialize(pxml) ⇒ Record

Returns a new instance of Record.



7
8
9
# File 'lib/wcapi/record.rb', line 7

def initialize(pxml)
   #Setup a document
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def author
  @author
end

#citationObject

Returns the value of attribute citation.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def citation
  @citation
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def id
  @id
end

Returns the value of attribute link.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def link
  @link
end

#summaryObject

Returns the value of attribute summary.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def summary
  @summary
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def title
  @title
end

#xmlObject

Returns the value of attribute xml.



5
6
7
# File 'lib/wcapi/record.rb', line 5

def xml
  @xml
end