You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Resources::BuilderSources::Identifier

Inherits:
Object
  • Object
show all
Includes:
Source
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb

Overview

Extracts an identifier from a parent resource identifier. Used when building a Resource from the context of another resource.

Instance Attribute Summary

Attributes included from Source

#source, #target

Instance Method Summary collapse

Methods included from Source

#initialize, #plural?

Instance Method Details

#extract(options) ⇒ Object

Parameters:

  • [required, (Hash)

    a customizable set of options



47
48
49
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 47

def extract(options)
  options[:resource].send(@source)
end