Method: Resolv::DNS::Resource::CAA#initialize

Defined in:
lib/resolv.rb

#initialize(flags, tag, value) ⇒ CAA

Creates a new CAA for flags, tag and value.



2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
# File 'lib/resolv.rb', line 2566

def initialize(flags, tag, value)
  unless (0..255) === flags
    raise ArgumentError.new('flags must be an Integer between 0 and 255')
  end
  unless (1..15) === tag.bytesize
    raise ArgumentError.new('length of tag must be between 1 and 15')
  end

  @flags = flags
  @tag = tag
  @value = value
end