Class: ConnectionEndpoint
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- ConnectionEndpoint
- Defined in:
- app/models/connection_endpoint.rb
Instance Attribute Summary collapse
-
#from_comp_inst ⇒ Object
Returns the value of attribute from_comp_inst.
-
#from_connector ⇒ Object
Returns the value of attribute from_connector.
-
#to_comp_inst ⇒ Object
Returns the value of attribute to_comp_inst.
-
#to_connector ⇒ Object
Returns the value of attribute to_connector.
Instance Method Summary collapse
-
#initialize(from_comp, to_comp, pub, sub) ⇒ ConnectionEndpoint
constructor
A new instance of ConnectionEndpoint.
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_inst ⇒ Object
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_connector ⇒ Object
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_inst ⇒ Object
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_connector ⇒ Object
Returns the value of attribute to_connector.
2 3 4 |
# File 'app/models/connection_endpoint.rb', line 2 def to_connector @to_connector end |