Sha256: ab30187e64bb63a963aeab2213ac709d52ae274c346e39b1f562854c9fb6132b

Contents?: true

Size: 663 Bytes

Versions: 61

Compression:

Stored size: 663 Bytes

Contents

module Fog
  module Parsers
    module Terremark
      module Shared

        class NodeService < TerremarkParser

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'Description', 'Href', 'IpAddress', 'Name', 'Protocol'
              @response[name] = value
            when 'Enabled'
              if value == 'false'
                @response[name] = false
              else
                @response[name] = true
              end
            when 'Id', 'Port'
              @response[name] = value.to_i
            end
          end

        end

      end
    end
  end
end

Version data entries

61 entries across 61 versions & 6 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/terremark/parsers/shared/node_service.rb
gapinc-fog-1.12.1.2.1 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/terremark/parsers/shared/node_service.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/terremark/parsers/shared/node_service.rb
fog-1.18.0 lib/fog/terremark/parsers/shared/node_service.rb
fog-1.17.0 lib/fog/terremark/parsers/shared/node_service.rb
fog-1.16.0 lib/fog/terremark/parsers/shared/node_service.rb