Class: Gandi::Domain::Zone::Version
- Inherits:
-
Object
- Object
- Gandi::Domain::Zone::Version
- Extended by:
- Connector
- Defined in:
- lib/gandi/domain/zone/version.rb
Class Method Summary collapse
-
.create(zone_id, version_id = 0) ⇒ Object
New version from another version.
-
.delete(zone_id, version_id) ⇒ Object
Delete a specific version.
-
.set(zone_id, version_id) ⇒ Object
Sets the active zone version.
Methods included from Connector
Class Method Details
.create(zone_id, version_id = 0) ⇒ Object
New version from another version. This will duplicate the version’s records. Note that cloned records will have new identifiers. Return the created version number. NOTE: This method is called new in the XML-RPC, API, and has been named create here to avoid conflicts with Ruby’s initialize method
18 19 20 |
# File 'lib/gandi/domain/zone/version.rb', line 18 def create(zone_id, version_id = 0) call('domain.zone.version.new', zone_id, version_id) end |
.delete(zone_id, version_id) ⇒ Object
Delete a specific version. Return true.
10 11 12 |
# File 'lib/gandi/domain/zone/version.rb', line 10 def delete(zone_id, version_id) call('domain.zone.version.delete', zone_id, version_id) end |
.set(zone_id, version_id) ⇒ Object
Sets the active zone version. Return true.
24 25 26 |
# File 'lib/gandi/domain/zone/version.rb', line 24 def set(zone_id, version_id) call('domain.zone.version.set', zone_id, version_id) end |