Class: Ufo::ECS::Service

Inherits:
Struct
  • Object
show all
Defined in:
lib/ufo/ecs/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cluster_arnObject

Returns the value of attribute cluster_arn

Returns:

  • (Object)

    the current value of cluster_arn



11
12
13
# File 'lib/ufo/ecs/service.rb', line 11

def cluster_arn
  @cluster_arn
end

#service_arnObject

Returns the value of attribute service_arn

Returns:

  • (Object)

    the current value of service_arn



11
12
13
# File 'lib/ufo/ecs/service.rb', line 11

def service_arn
  @service_arn
end

Instance Method Details

#cluster_nameObject



12
13
14
# File 'lib/ufo/ecs/service.rb', line 12

def cluster_name
  cluster_arn.split('/').last
end

#service_nameObject



16
17
18
# File 'lib/ufo/ecs/service.rb', line 16

def service_name
  service_arn.split('/').last
end