Parent

Class/Module Index [+]

Quicksearch

Fog::DNS::Bluebox::Record

Public Class Methods

new(attributes={}) click to toggle source
# File lib/fog/bluebox/models/dns/record.rb, line 20
def initialize(attributes={})
  super
end

Public Instance Methods

destroy() click to toggle source
# File lib/fog/bluebox/models/dns/record.rb, line 24
def destroy
  requires :identity
  service.delete_record(@zone.identity, identity)
  true
end
save() click to toggle source
# File lib/fog/bluebox/models/dns/record.rb, line 34
def save
  requires :zone, :type, :name, :value
  data = unless identity
    service.create_record(zone.identity, type, name, value)
  else
    service.update_record(zone.identity, identity, {:type => type, :name => name, :content => value})
  end
  merge_attributes(data.body)
  true
end
zone() click to toggle source
# File lib/fog/bluebox/models/dns/record.rb, line 30
def zone
  @zone
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.