Sha256: 34eb01a11de60b55d1fd2f2b4cc65d967e5514e273fb41ece33c64b0cb484f20

Contents?: true

Size: 413 Bytes

Versions: 25

Compression:

Stored size: 413 Bytes

Contents

module GreenButtonData
  module Parser
    class ServiceCategory
      include SAXMachine

      element :kind, class: Integer do |kind|
        GreenButtonData::Enumerations::SERVICE[kind]
      end

      # ESPI Namespacing
      element :'espi:kind', class: Integer, as: :kind

      # Special case for PG&E which uses generic namespacing
      element :'ns0:kind', class: Integer, as: :kind
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
green-button-data-2.0.1 lib/green-button-data/parser/service_category.rb
green-button-data-2.0.0 lib/green-button-data/parser/service_category.rb
green-button-data-1.0.3 lib/green-button-data/parser/service_category.rb
green-button-data-1.0.1 lib/green-button-data/parser/service_category.rb
green-button-data-1.0.0 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.5 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.4 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.3 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.2 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.1 lib/green-button-data/parser/service_category.rb
green-button-data-0.7.0 lib/green-button-data/parser/service_category.rb
green-button-data-0.6.0 lib/green-button-data/parser/service_category.rb
green-button-data-0.5.0 lib/green-button-data/parser/service_category.rb
green-button-data-0.4.2 lib/green-button-data/parser/service_category.rb
green-button-data-0.4.1 lib/green-button-data/parser/service_category.rb
green-button-data-0.3.2 lib/green-button-data/parser/service_category.rb
green-button-data-0.4.0 lib/green-button-data/parser/service_category.rb
green-button-data-0.4.0.alpha.pre.1 lib/green-button-data/parser/service_category.rb
green-button-data-0.3.1 lib/green-button-data/parser/service_category.rb
green-button-data-0.3.0 lib/green-button-data/parser/service_category.rb