Class: Flotte::Service
- Inherits:
-
Object
- Object
- Flotte::Service
- Defined in:
- lib/flotte/service.rb
Instance Attribute Summary collapse
- #default_environment ⇒ Hash readonly
- #image ⇒ String readonly
- #name ⇒ String readonly
Instance Method Summary collapse
- #id ⇒ String
-
#initialize(name:, image:, default_environment: {}) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(name:, image:, default_environment: {}) ⇒ Service
Returns a new instance of Service.
11 12 13 14 15 |
# File 'lib/flotte/service.rb', line 11 def initialize(name:, image:, default_environment: {}) @name = name @image = image @default_environment = default_environment end |
Instance Attribute Details
#default_environment ⇒ Hash (readonly)
6 7 8 |
# File 'lib/flotte/service.rb', line 6 def default_environment @default_environment end |
#image ⇒ String (readonly)
4 5 6 |
# File 'lib/flotte/service.rb', line 4 def image @image end |
#name ⇒ String (readonly)
4 5 6 |
# File 'lib/flotte/service.rb', line 4 def name @name end |
Instance Method Details
#id ⇒ String
18 19 20 |
# File 'lib/flotte/service.rb', line 18 def id name end |