Class: Devup::PortMapping

Inherits:
Object
  • Object
show all
Defined in:
lib/devup/port_mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ PortMapping

Returns a new instance of PortMapping.



3
4
5
6
# File 'lib/devup/port_mapping.rb', line 3

def initialize(from, to)
  @from = from
  @to = to
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



8
9
10
# File 'lib/devup/port_mapping.rb', line 8

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



8
9
10
# File 'lib/devup/port_mapping.rb', line 8

def to
  @to
end

Instance Method Details

#==(another) ⇒ Object



10
11
12
# File 'lib/devup/port_mapping.rb', line 10

def ==(another)
  @from == another.from && @to == another.to
end