Exception: Pec::PortError
- Inherits:
-
StandardError
- Object
- StandardError
- Pec::PortError
- Defined in:
- lib/pec/port_error.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(ports) ⇒ PortError
constructor
A new instance of PortError.
Constructor Details
#initialize(ports) ⇒ PortError
Returns a new instance of PortError.
3 4 5 6 7 |
# File 'lib/pec/port_error.rb', line 3 def initialize(ports) self.attribute = { networks: ports.map {|port| { uuid: '', port: port.id }} } if ports end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
2 3 4 |
# File 'lib/pec/port_error.rb', line 2 def attribute @attribute end |