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

Class: Aws::Resources::RequestParams::DataMember

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

Instance Attribute Summary

Attributes included from Param

#target

Instance Method Summary collapse

Methods included from Param

#apply

Constructor Details

#initialize(options) ⇒ DataMember

Returns a new instance of DataMember



113
114
115
116
# File 'aws-sdk-resources/lib/aws-sdk-resources/request_params.rb', line 113

def initialize(options)
  @path = options[:path]
  super
end

Instance Method Details

#value(options) ⇒ Object



118
119
120
# File 'aws-sdk-resources/lib/aws-sdk-resources/request_params.rb', line 118

def value(options)
  JMESPath.search(@path, options[:resource].data)
end