Sha256: 7dc7c8c87645fcb10a930c275182d646a89440c1aafbb6fcb186fde514b31078

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

# Copyright (C) 2015 TopCoder Inc., All Rights Reserved.

require 'sax-machine'

module GreenButton
  module Parser
    # a sax-machine mapping for the espi:UsagePoint structure
    #
    # For example:
    #   usage_point = GbUsagePoint.parse(open(usage_point.xml))
    #
    #
    # Author: ahmed.seddiq
    # Version: 1.0
    class GbUsagePoint
      include SAXMachine
      element :'espi:kind', class: Integer, as: :kind
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ce-greenbutton-0.1.2 lib/ce-greenbutton/elements/gb_usage_point.rb
ce-greenbutton-0.1.1 lib/ce-greenbutton/elements/gb_usage_point.rb
ce-greenbutton-0.1.0 lib/ce-greenbutton/elements/gb_usage_point.rb