Sha256: b05b7be5071a521d91f427953b574af144d32ed16a760bbc83c977a0e368717d

Contents?: true

Size: 602 Bytes

Versions: 7

Compression:

Stored size: 602 Bytes

Contents

module Fog
  module Parsers
    module Voxel
      module Compute

        class VoxcloudDelete < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def start_element(name, attrs = [])
            super

            case name
            when 'rsp'
              @response['stat'] = attr_value('stat', attrs)
            when 'err'
              @response['err'] = {
                'code'  => attr_value('code', attrs),
                'msg'   => attr_value('msg', attrs)
              }
            end
          end

        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.8.1 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.8.0 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.7.2 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.7.1 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.7.0 lib/fog/compute/parsers/voxel/voxcloud_delete.rb
fog-0.6.0 lib/fog/compute/parsers/voxel/voxcloud_delete.rb