Sha256: bbac9260db45fb14e981763d43ce4d8f1f582620aaedd8bf175f787f7be7f049

Contents?: true

Size: 776 Bytes

Versions: 12

Compression:

Stored size: 776 Bytes

Contents

module Fog
  module Parsers
    module Vcloud

      class GetVdc < Fog::Parsers::Vcloud::Base
        #WARNING: Incomplete
        #Based off of:
        #vCloud API Guide v0.9 - Page 27

        def reset
          @response = Struct::VcloudVdc.new([])
        end

        def start_element(name, attributes)
          @value = ''
          case name
          when 'Link'
            @response.links << generate_link(attributes)
          when 'Vdc'
            handle_root(attributes)
          end
        end

        def end_element(name)
          case name
          when "AllocationModel"
            @response.allocation_model = @value
          when "Description"
            @response.description = @value
          end
        end

      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-0.1.4 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.1.3 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.1.2 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.1.1 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.1.0 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.100 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.99 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.98 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.97 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.96 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.95 lib/fog/vcloud/parsers/get_vdc.rb
fog-0.0.94 lib/fog/vcloud/parsers/get_vdc.rb