Class: Aws::Plugins::DynamoDBSimpleAttributes::ValueTranslator Private

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules, mode) ⇒ ValueTranslator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ValueTranslator.


146
147
148
149
# File 'lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb', line 146

def initialize(rules, mode)
  @rules = rules
  @mode = mode
end

Class Method Details

.apply(rules, mode, data) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


142
143
144
# File 'lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb', line 142

def self.apply(rules, mode, data)
  new(rules, mode).apply(data)
end

Instance Method Details

#apply(values) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


151
152
153
# File 'lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb', line 151

def apply(values)
  structure(@rules, values) if @rules
end