Class: Aws::Json::Builder Private

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
lib/aws-sdk-core/json/builder.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.

Instance Method Summary collapse

Constructor Details

#initialize(rules) ⇒ Builder

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 Builder.



9
10
11
# File 'lib/aws-sdk-core/json/builder.rb', line 9

def initialize(rules)
  @rules = rules
end

Instance Method Details

#to_json(params) ⇒ Object Also known as: serialize

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.



13
14
15
# File 'lib/aws-sdk-core/json/builder.rb', line 13

def to_json(params)
  Json.dump(format(@rules, params))
end