Class: Aws::DynamoDB::Plugins::SimpleAttributes::ValueTranslator Private
- Inherits:
-
Object
- Object
- Aws::DynamoDB::Plugins::SimpleAttributes::ValueTranslator
- Includes:
- Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-dynamodb/plugins/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
- #apply(values) ⇒ Object private
-
#initialize(rules, mode) ⇒ ValueTranslator
constructor
private
A new instance of ValueTranslator.
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.
167 168 169 170 |
# File 'lib/aws-sdk-dynamodb/plugins/simple_attributes.rb', line 167 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.
163 164 165 |
# File 'lib/aws-sdk-dynamodb/plugins/simple_attributes.rb', line 163 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.
172 173 174 |
# File 'lib/aws-sdk-dynamodb/plugins/simple_attributes.rb', line 172 def apply(values) structure(@rules, values) if @rules end |