Class: KuberKit::Core::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/core/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @tags = tags
  @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 tags
  @tags
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