Class: Devup::Service
- Inherits:
-
Object
- Object
- Devup::Service
- Defined in:
- lib/devup/service.rb
Instance Attribute Summary collapse
-
#compose ⇒ Object
readonly
Returns the value of attribute compose.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(compose, name) ⇒ Service
constructor
A new instance of Service.
- #ports ⇒ Object
Constructor Details
#initialize(compose, name) ⇒ Service
Returns a new instance of Service.
7 8 9 10 |
# File 'lib/devup/service.rb', line 7 def initialize(compose, name) @compose = compose @name = name end |
Instance Attribute Details
#compose ⇒ Object (readonly)
Returns the value of attribute compose.
5 6 7 |
# File 'lib/devup/service.rb', line 5 def compose @compose end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/devup/service.rb', line 5 def name @name end |
Instance Method Details
#ports ⇒ Object
12 13 14 |
# File 'lib/devup/service.rb', line 12 def ports @ports ||= fetch_ports end |