class OVH::Provisioner::APIObject::Record
Represent a record in a domain zone
Attributes
subdomain[R]
target[R]
ttl[R]
type[R]
zone[R]
Public Class Methods
print(zone, subdomain, ttl, type, target)
click to toggle source
# File lib/ovh/provisioner/api_object/record.rb, line 26 def self.print(zone, subdomain, ttl, type, target) "#{subdomain.empty? ? "#{zone}." : subdomain} "\ "#{ttl} #{type} #{target}".strip end
Public Instance Methods
to_s()
click to toggle source
# File lib/ovh/provisioner/api_object/record.rb, line 31 def to_s self.class.print(zone, subdomain, ttl, type, target) end
Private Instance Methods
set_general()
click to toggle source
# File lib/ovh/provisioner/api_object/record.rb, line 37 def set_general general = get @target = general['target'] @ttl = general['ttl'] @zone = general['zone'] @type = general['fieldType'] @subdomain = general['subDomain'] end