Class: Construqt::Addresses::Address::Route

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dst, via, type, metric, routing_table) ⇒ Route

Returns a new instance of Route.



243
244
245
246
247
248
249
# File 'lib/construqt/addresses.rb', line 243

def initialize(dst, via, type, metric, routing_table)
  @dst = dst
  @via = via
  @type = type
  @metric = metric
  @routing_table = routing_table
end

Instance Attribute Details

#dstObject (readonly)

Returns the value of attribute dst.



242
243
244
# File 'lib/construqt/addresses.rb', line 242

def dst
  @dst
end

#metricObject (readonly)

Returns the value of attribute metric.



242
243
244
# File 'lib/construqt/addresses.rb', line 242

def metric
  @metric
end

#routing_tableObject (readonly)

Returns the value of attribute routing_table.



242
243
244
# File 'lib/construqt/addresses.rb', line 242

def routing_table
  @routing_table
end

#typeObject (readonly)

Returns the value of attribute type.



242
243
244
# File 'lib/construqt/addresses.rb', line 242

def type
  @type
end

#viaObject (readonly)

Returns the value of attribute via.



242
243
244
# File 'lib/construqt/addresses.rb', line 242

def via
  @via
end