Module: GreenButtonClasses

Defined in:
lib/greenbutton/gb_classes.rb

Defined Under Namespace

Classes: ElectricPowerQualitySummary, ElectricPowerUsageSummary, GreenButtonEntry, IntervalBlock, IntervalReading, LocalTimeParameters, MeterReading, ReadingType, UsagePoint

Constant Summary collapse

Rule =
Helper::Rule
RULES =
{
  href: Rule.new(:href, "./link[@rel='self']/@href", :string),
  parent_href: Rule.new(:parent_href, "./link[@rel='up']/@href", :string),
  id: Rule.new(:id, "./id", :string),
  title: Rule.new(:title, "./title", :string),
  date_published: Rule.new(:date_published, "./published", :datetime),
  date_updated: Rule.new(:date_updated, "./updated", :datetime)
}