Class: ConnectionEndpoint

Inherits:
OpenShift::Model
  • Object
show all
Defined in:
app/models/connection_endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from_comp, to_comp, pub, sub) ⇒ ConnectionEndpoint

Returns a new instance of ConnectionEndpoint.



4
5
6
7
8
9
# File 'app/models/connection_endpoint.rb', line 4

def initialize(from_comp, to_comp, pub, sub)
  self.from_comp_inst = from_comp.name
  self.to_comp_inst = to_comp.name
  self.from_connector = pub
  self.to_connector = sub
end

Instance Attribute Details

#from_comp_instObject

Returns the value of attribute from_comp_inst.



2
3
4
# File 'app/models/connection_endpoint.rb', line 2

def from_comp_inst
  @from_comp_inst
end

#from_connectorObject

Returns the value of attribute from_connector.



2
3
4
# File 'app/models/connection_endpoint.rb', line 2

def from_connector
  @from_connector
end

#to_comp_instObject

Returns the value of attribute to_comp_inst.



2
3
4
# File 'app/models/connection_endpoint.rb', line 2

def to_comp_inst
  @to_comp_inst
end

#to_connectorObject

Returns the value of attribute to_connector.



2
3
4
# File 'app/models/connection_endpoint.rb', line 2

def to_connector
  @to_connector
end