Class: Aws::ElasticTranscoder::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-elastictranscoder/resource.rb

Overview

This class provides a resource oriented interface for ElasticTranscoder. To create a resource object:

resource = Aws::ElasticTranscoder::Resource.new(region: 'us-west-2')

You can supply a client object with custom configuration that will be used for all resource operations. If you do not pass :client, a default client will be constructed.

client = Aws::ElasticTranscoder::Client.new(region: 'us-west-2')
resource = Aws::ElasticTranscoder::Resource.new(client: client)

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Resource

Returns a new instance of Resource.

Parameters:

  • options ({}) (defaults to: {})

Options Hash (options):



20
21
22
# File 'lib/aws-sdk-elastictranscoder/resource.rb', line 20

def initialize(options = {})
  @client = options[:client] || Client.new(options)
end

Instance Method Details

#clientClient

Returns:



25
26
27
# File 'lib/aws-sdk-elastictranscoder/resource.rb', line 25

def client
  @client
end