Class: KuberKit::Core::Service
Instance Attribute Summary collapse
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#template_name ⇒ Object
readonly
Returns the value of attribute template_name.
Instance Method Summary collapse
-
#initialize(name:, template_name:, tags:, images:) ⇒ Service
constructor
A new instance of Service.
- #uri ⇒ Object
Constructor Details
#initialize(name:, template_name:, tags:, images:) ⇒ Service
Returns a new instance of Service.
10 11 12 13 14 15 |
# File 'lib/kuber_kit/core/service.rb', line 10 def initialize(name:, template_name:, tags:, images:) @name = name @template_name = template_name = @images = images end |
Instance Attribute Details
#images ⇒ Object (readonly)
Returns the value of attribute images.
2 3 4 |
# File 'lib/kuber_kit/core/service.rb', line 2 def images @images end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/kuber_kit/core/service.rb', line 2 def name @name end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
2 3 4 |
# File 'lib/kuber_kit/core/service.rb', line 2 def end |
#template_name ⇒ Object (readonly)
Returns the value of attribute template_name.
2 3 4 |
# File 'lib/kuber_kit/core/service.rb', line 2 def template_name @template_name end |
Instance Method Details
#uri ⇒ Object
17 18 19 |
# File 'lib/kuber_kit/core/service.rb', line 17 def uri name.to_s.sub("_", "-") end |