Sha256: 188106e9d1cd2b77a720b6f3427786b59077c82617ee340210ca0732050e3441

Contents?: true

Size: 473 Bytes

Versions: 13

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

module Awspec::Type
  class ElastictranscoderPipeline < ResourceBase
    def resource_via_client
      @resource_via_client ||= find_pipeline(@display_name)
    end

    def id
      @id ||= resource_via_client.id if resource_via_client
    end

    STATUSES = %w[
      Active Paused
    ]

    STATUSES.each do |status|
      define_method "#{status.underscore}?" do
        resource_via_client.status == status
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.30.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.29.3 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.29.2 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.29.1 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.29.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.28.2 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.28.1 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.28.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.27.1 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.27.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.26.0 lib/awspec/type/elastictranscoder_pipeline.rb
awspec-1.25.2 lib/awspec/type/elastictranscoder_pipeline.rb