class Fog::Compute::Ecloud::Rows
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/ecloud/models/rows.rb, line 11 def all data = service.get_layout(href).body[:Rows][:Row] load(data) end
create(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/rows.rb, line 28 def create(options = {}) options[:uri] = "#{service.base_path}/layoutRows/environments/#{environment_id}/action/createLayoutRow" data = service.rows_create(options).body new(data) end
environment_id()
click to toggle source
# File lib/fog/compute/ecloud/models/rows.rb, line 34 def environment_id href.scan(/\d+/)[0] end
get(uri)
click to toggle source
# File lib/fog/compute/ecloud/models/rows.rb, line 16 def get(uri) data = service.get_row(uri).body if data == "" nil else new(data) end rescue ServiceError => e raise e unless e.status_code == 404 nil end