Sha256: 6d67f861ec024676fdbf159286a2f67a1903e3a80a410beced7685d2ae36e973

Contents?: true

Size: 599 Bytes

Versions: 106

Compression:

Stored size: 599 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real
        include Shared

        def rows_create(data)
          validate_data([:name], data)

          request(
            :body => generate_rows_create_request(data),
            :expects => 201,
            :method => "POST",
            :headers => {},
            :uri => data[:uri],
            :parse => true
          )
        end

        private

        def generate_rows_create_request(data)
          xml = Builder::XmlMarkup.new
          xml.CreateLayoutRow(:name => data[:name])
        end
      end
    end
  end
end

Version data entries

106 entries across 104 versions & 17 rubygems

Version Path
fog-maestrodev-1.18.0.20131114200144 lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.12.1.2.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.18.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.17.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.16.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.15.0 lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.14.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.14.0 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.13.0 lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.12.1.2 lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.12.1.1 lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.12.1a lib/fog/ecloud/requests/compute/rows_create.rb
gapinc-fog-1.12.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.12.1 lib/fog/ecloud/requests/compute/rows_create.rb
fog-1.12.0 lib/fog/ecloud/requests/compute/rows_create.rb