Class: Aws::Resources::BuilderSources::RequestParameter

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

Overview

Extracts an identifier from the request parameters used to generate a response. Used when building a Resource object from the response of an operation.

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


70
71
72
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 70

def extract(options)
  JMESPath.search(@source, options[:response].context.params)
end