Class: Aws::Json::Builder Private
- Inherits:
- 
      Object
      
        - Object
- Aws::Json::Builder
 
- 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
- 
  
    
      #initialize(rules, _options = {})  ⇒ Builder 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of Builder. 
- #to_json(params) ⇒ Object (also: #serialize) private
Constructor Details
#initialize(rules, _options = {}) ⇒ 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.
| 11 12 13 | # File 'lib/aws-sdk-core/json/builder.rb', line 11 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.
| 15 16 17 | # File 'lib/aws-sdk-core/json/builder.rb', line 15 def to_json(params) Json.dump(format(@rules, params)) end |