Method: Clouddns::Record#initialize

Defined in:
lib/clouddns/record.rb

#initialize(type, name, value, options = {}) ⇒ Record

Returns a new instance of Record.



7
8
9
10
11
12
13
14
15
16
# File 'lib/clouddns/record.rb', line 7

def initialize type, name, value, options = {}
  value = [value] unless value.is_a? Array
  options[:ttl] ||= 600

  self.attributes = options.merge({
    :type => type,
    :name => name,
    :value => value
  })
end