class Fog::Compute::Ecloud::Row

Public Instance Methods

create_group(options = {}) click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 35
def create_group(options = {})
  options[:uri] = "#{service.base_path}/layoutGroups/environments/#{environment_id}/action/createLayoutGroup"
  options[:row_name] = name
  options[:href] = href
  data = service.groups_create(options).body
  group = self.service.groups.new(data)
end
delete() click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 31
def delete
  service.rows_delete(href).body
end
Also aliased as: destroy
destroy()
Alias for: delete
edit(options) click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 16
def edit(options)
  options[:uri] = href
  service.rows_edit(options).body
end
environment_id() click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 43
def environment_id
  reload if other_links.nil?
  other_links[:Link][:href].scan(/\d+/)[0]
end
groups() click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 12
def groups
  @groups = self.service.groups(:href => href)
end
id() click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 48
def id
  href.scan(/\d+/)[0]
end
move_down(options) click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 26
def move_down(options)
  options[:uri] = href + "/action/movedown"
  service.rows_movedown(options).body
end
move_up(options) click to toggle source
# File lib/fog/compute/ecloud/models/row.rb, line 21
def move_up(options)
  options[:uri] = href + "/action/moveup"
  service.rows_moveup(options).body
end