Class: Construqt::Addresses::Address::Route
- Inherits:
-
Object
- Object
- Construqt::Addresses::Address::Route
- Defined in:
- lib/construqt/addresses.rb
Instance Attribute Summary collapse
-
#dst ⇒ Object
readonly
Returns the value of attribute dst.
-
#metric ⇒ Object
readonly
Returns the value of attribute metric.
-
#routing_table ⇒ Object
readonly
Returns the value of attribute routing_table.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#via ⇒ Object
readonly
Returns the value of attribute via.
Instance Method Summary collapse
-
#initialize(dst, via, type, metric, routing_table) ⇒ Route
constructor
A new instance of Route.
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
#dst ⇒ Object (readonly)
Returns the value of attribute dst.
242 243 244 |
# File 'lib/construqt/addresses.rb', line 242 def dst @dst end |
#metric ⇒ Object (readonly)
Returns the value of attribute metric.
242 243 244 |
# File 'lib/construqt/addresses.rb', line 242 def metric @metric end |
#routing_table ⇒ Object (readonly)
Returns the value of attribute routing_table.
242 243 244 |
# File 'lib/construqt/addresses.rb', line 242 def routing_table @routing_table end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
242 243 244 |
# File 'lib/construqt/addresses.rb', line 242 def type @type end |
#via ⇒ Object (readonly)
Returns the value of attribute via.
242 243 244 |
# File 'lib/construqt/addresses.rb', line 242 def via @via end |