Class CloudServers::SharedIPGroup
In: lib/cloudservers/shared_ip_group.rb
Parent: Object

Methods

delete!   new   populate   refresh  

Attributes

id  [R] 
name  [R] 
servers  [R] 

Public Class methods

Creates a new Shared IP Group object, with information on the group identified by the ID number. Will most likely be called by the get_shared_ip_group method on a CloudServers::Connection object.

  >> sig = cs.get_shared_ip_group(127)
  => #<CloudServers::SharedIPGroup:0x101513798 ...>
  >> sig.name
  => "New Group"

Public Instance methods

Deletes the Shared IP Group identified by the current object.

Returns true if the API call succeeds.

  >> sig.delete!
  => true

Makes the API call that populates the CloudServers::SharedIPGroup object with information on the group. Can also be called directly on an existing object to update its information.

Returns true if the API call succeeds.

  >> sig.populate
  => true
refresh()

Alias for populate

[Validate]