Class: GreenButton::Parser::GbEntry

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

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 related
  @related
end

#typeObject

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