Sha256: ddf9cc46740f898bbcd1a34d458d55cad8bf2072742a162fa11a7421dcf305b5

Contents?: true

Size: 571 Bytes

Versions: 4

Compression:

Stored size: 571 Bytes

Contents

module GreenButtonData
  module Parser
    class TownDetail
      include SAXMachine

      element :stateOrProvince, 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

4 entries across 4 versions & 1 rubygems

Version Path
green-button-data-1.0.3 lib/green-button-data/parser/town_detail.rb
green-button-data-1.0.1 lib/green-button-data/parser/town_detail.rb
green-button-data-1.0.0 lib/green-button-data/parser/town_detail.rb
green-button-data-0.7.5 lib/green-button-data/parser/town_detail.rb