Sha256: 7222b23c1263c597feafd3e52be88783aae93f6da11ef9943e43b4b1bd01f7ef
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 Bytes
Contents
module FluentECS class Task include Resource self.resource_endpoint = '/tasks' attr_accessor :arn, :container_instance, :desired_status, :family, :known_status, :version def initialize(attrs = {}) @arn = attrs['Arn'] @desired_status = attrs['DesiredStatus'] @family = attrs['Family'] @known_status = attrs['KnownStatus'] @version = attrs['Version'] @container_data = attrs['Containers'] end def containers @containers ||= @container_data.map do |d| Container.new(d).tap { |c| c.task = self } end end end end
Version data entries
5 entries across 5 versions & 3 rubygems