Class: GreenButton::Parser::GbEntry
- Inherits:
-
Object
- Object
- GreenButton::Parser::GbEntry
- Includes:
- SAXMachine
- Defined in:
- lib/ce-greenbutton/elements/gb_entry.rb
Overview
a sax-machine mapping for the Entry structure
For example:
entry = GbEntry.parse(open(entry.xml))
Author: ahmed.seddiq Version: 1.0
Instance Attribute Summary collapse
-
#related ⇒ Object
The related entries.
-
#type ⇒ Object
The entry type, e.g.
Instance Attribute Details
#related ⇒ Object
The related entries. It is a hash => entry_url
entry_urls are the href value of the link element with type "related"
19 20 21 |
# File 'lib/ce-greenbutton/elements/gb_entry.rb', line 19 def end |
#type ⇒ Object
The entry type, e.g. UsagePoint, IntervalBlock,…etc
22 23 24 |
# File 'lib/ce-greenbutton/elements/gb_entry.rb', line 22 def type @type end |