Class: Ufo::ECS::Service

Inherits:
Struct
  • Object
show all
Defined in:
lib/ufo/ship.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



10
11
12
# File 'lib/ufo/ship.rb', line 10

def cluster_arn
  @cluster_arn
end

#service_arnObject

Returns the value of attribute service_arn

Returns:

  • (Object)

    the current value of service_arn



10
11
12
# File 'lib/ufo/ship.rb', line 10

def service_arn
  @service_arn
end

Instance Method Details

#cluster_nameObject



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

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

#service_nameObject



15
16
17
# File 'lib/ufo/ship.rb', line 15

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