Class: WCAPI::Record
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#citation ⇒ Object
Returns the value of attribute citation.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#title ⇒ Object
Returns the value of attribute title.
-
#xml ⇒ Object
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(pxml) ⇒ Record
constructor
A new instance of Record.
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
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def @author end |
#citation ⇒ Object
Returns the value of attribute citation.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def citation @citation end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def link @link end |
#summary ⇒ Object
Returns the value of attribute summary.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def summary @summary end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def title @title end |
#xml ⇒ Object
Returns the value of attribute xml.
5 6 7 |
# File 'lib/wcapi/record.rb', line 5 def xml @xml end |