Sha256: 3c4b7204141a54e813e20b9001cba00b8d45dca3ef5a854eb058acb0f4dc34a0
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
module Clouddns class Record attr_accessor :attributes alias :to_hash :attributes 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 def name; attributes[:name]; end def value; attributes[:value]; end def type; attributes[:type]; end def ttl; attributes[:ttl]; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clouddns-0.0.3 | lib/clouddns/record.rb |
clouddns-0.0.2 | lib/clouddns/record.rb |
clouddns-0.0.1 | lib/clouddns/record.rb |