Sha256: 2edd9774c4e014efdd8bab9902e7d5bf91dd6bcc7c4dbf1269d11cdef0df10cd

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

module GreenButtonData
  module Parser
    class TownDetail
      include SAXMachine

      element :state_or_province, as: :state_or_province
      element :code, as: :code
      element :name, as: :name

      # ESPI Namespacing
      element :'espi:stateOrProvince', as: :state_or_province
      element :'espi:code', as: :code
      element :'espi:name', as: :name

      # Special case for PG&E generic namespacing
      element :'ns0:stateOrProvince', as: :state_or_province
      element :'ns0:code', as: :code
      element :'ns0:name', as: :name
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
green-button-data-0.7.4 lib/green-button-data/parser/town_detail.rb
green-button-data-0.7.3 lib/green-button-data/parser/town_detail.rb
green-button-data-0.7.2 lib/green-button-data/parser/town_detail.rb
green-button-data-0.7.1 lib/green-button-data/parser/town_detail.rb
green-button-data-0.7.0 lib/green-button-data/parser/town_detail.rb
green-button-data-0.6.0 lib/green-button-data/parser/town_detail.rb