Class: Rubyfocus::RankedItem
- Defined in:
- lib/rubyfocus/items/ranked_item.rb
Instance Attribute Summary collapse
-
#rank ⇒ Object
Returns the value of attribute rank.
Attributes inherited from NamedItem
Attributes inherited from Item
#added, #document, #id, #modified
Instance Method Summary collapse
Methods inherited from Item
#initialize, #inspect, #to_serial
Methods included from ConditionalExec
Methods included from IDRef
Constructor Details
This class inherits a constructor from Rubyfocus::Item
Instance Attribute Details
#rank ⇒ Object
Returns the value of attribute rank.
2 3 4 |
# File 'lib/rubyfocus/items/ranked_item.rb', line 2 def rank @rank end |
Instance Method Details
#apply_xml(n) ⇒ Object
4 5 6 7 |
# File 'lib/rubyfocus/items/ranked_item.rb', line 4 def apply_xml(n) super(n) conditional_set(:rank, n.at_xpath("xmlns:rank")){ |e| e.inner_html.to_i } end |