Class: Construqt::Addresses::Address::TagRoute

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/addresses.rb

Overview

@nameservers = []

def add_nameserver(ip)
  @nameservers << IPAddress.parse(ip)
  self
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dst_tag, via_tag, options) ⇒ TagRoute

Returns a new instance of TagRoute.



214
215
216
217
218
# File 'lib/construqt/addresses.rb', line 214

def initialize(dst_tag, via_tag, options)
  @dst_tag = dst_tag
  @via_tag = via_tag
  @options = options
end

Instance Attribute Details

#dst_tagObject (readonly)

Returns the value of attribute dst_tag.



213
214
215
# File 'lib/construqt/addresses.rb', line 213

def dst_tag
  @dst_tag
end

#optionsObject (readonly)

Returns the value of attribute options.



213
214
215
# File 'lib/construqt/addresses.rb', line 213

def options
  @options
end

#via_tagObject (readonly)

Returns the value of attribute via_tag.



213
214
215
# File 'lib/construqt/addresses.rb', line 213

def via_tag
  @via_tag
end