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

Included in:
Argument, DataMember, Identifier, RequestParameter, ResponsePath
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)


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

def source
  @source
end

#targetSymbol (readonly)


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


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

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