Exception: Pec::PortError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pec/port_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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: nil, port: port.id }}
  } if ports
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



2
3
4
# File 'lib/pec/port_error.rb', line 2

def attribute
  @attribute
end