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

Class: Aws::Json::Builder

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

Instance Method Summary collapse

Constructor Details

#initialize(rules) ⇒ Builder

Returns a new instance of Builder



9
10
11
# File 'gems/aws-sdk-core/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



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

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