Class: Aws::Json::Parser Private

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

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 Parser

Parameters:

  • rules (Seahorse::Model::ShapeRef)


11
12
13
# File 'lib/aws-sdk-core/json/parser.rb', line 11

def initialize(rules)
  @rules = rules
end

Instance Method Details

#parse(json, target = nil) ⇒ 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.

Parameters:

  • json (String<JSON>)


16
17
18
# File 'lib/aws-sdk-core/json/parser.rb', line 16

def parse(json, target = nil)
  parse_ref(@rules, Json.load(json), target)
end