1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/ecloud/requests/compute/rows_create.rb

30 lines
599 B
Ruby
Raw Normal View History

2012-06-07 12:50:11 -04:00
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