AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Module: Aws::Resources::BuilderSources::Source

Included in:
Argument, DataMember, Identifier, RequestParameter, ResponsePath, StringLiteral
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sourceString? (readonly)

Returns:

  • (String, nil)


13
14
15
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 13

def source
  @source
end

#targetSymbol (readonly)

Returns:

  • (Symbol)


16
17
18
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 16

def target
  @target
end

Instance Method Details

#initialize(options) ⇒ Object



7
8
9
10
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 7

def initialize(options)
  @source = options[:source]
  @target = options[:target].to_sym
end

#plural?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'aws-sdk-resources/lib/aws-sdk-resources/builder_sources.rb', line 19

def plural?
  !!(@source && @source.include?('['))
end