Class: Construqt::Bgps::As
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Construqt::Bgps::As
- Defined in:
- lib/construqt/bgps.rb
Instance Method Summary collapse
-
#initialize(cfg) ⇒ As
constructor
A new instance of As.
- #name ⇒ Object
- #num ⇒ Object
Constructor Details
#initialize(cfg) ⇒ As
Returns a new instance of As.
128 129 130 |
# File 'lib/construqt/bgps.rb', line 128 def initialize(cfg) super(cfg) end |
Instance Method Details
#name ⇒ Object
132 133 134 |
# File 'lib/construqt/bgps.rb', line 132 def name (self.prefix || "AS") + self.as.to_s end |
#num ⇒ Object
136 137 138 |
# File 'lib/construqt/bgps.rb', line 136 def num self.as end |