class Fog::Compute::Ecloud::Rows

Public Instance Methods

all() click to toggle source
# File lib/fog/ecloud/models/compute/rows.rb, line 12
def all
  data = connection.get_layout(href).body[:Rows][:Row]
  load(data)
end
create(options = {}) click to toggle source
# File lib/fog/ecloud/models/compute/rows.rb, line 25
def create(options = {})
  options[:uri] = "/cloudapi/ecloud/layoutRows/environments/#{environment_id}/action/createLayoutRow"
  data = connection.rows_create(options).body
  new(data)
end
environment_id() click to toggle source
# File lib/fog/ecloud/models/compute/rows.rb, line 31
def environment_id
  href.scan(/\d+/)[0]
end
get(uri) click to toggle source
# File lib/fog/ecloud/models/compute/rows.rb, line 17
def get(uri)
  if data = connection.get_row(uri)
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end