Module: Aws::RpcV2 Private
- Defined in:
- lib/aws-sdk-core/rpc_v2.rb,
 lib/aws-sdk-core/rpc_v2/parser.rb,
 lib/aws-sdk-core/rpc_v2/builder.rb,
 lib/aws-sdk-core/rpc_v2/handler.rb,
 lib/aws-sdk-core/rpc_v2/cbor_engine.rb,
 lib/aws-sdk-core/rpc_v2/error_handler.rb,
 lib/aws-sdk-core/rpc_v2/content_type_handler.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: CborEngine Classes: Builder, ContentTypeHandler, ErrorHandler, Handler, Parser
Class Method Summary collapse
- .decode(bytes) ⇒ Object private
- .encode(data) ⇒ Object private
- 
  
    
      .engine  ⇒ Class 
    
    
  
  
  
  
  
  
  
  private
  
    Returns the default engine. 
- .engine=(engine) ⇒ Object private
- .set_default_engine ⇒ Object private
Class Method Details
.decode(bytes) ⇒ 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.
| 37 38 39 40 | # File 'lib/aws-sdk-core/rpc_v2.rb', line 37 def decode(bytes) bytes.force_encoding(Encoding::BINARY) @engine.decode(bytes) end | 
.encode(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.
| 33 34 35 | # File 'lib/aws-sdk-core/rpc_v2.rb', line 33 def encode(data) @engine.encode(data) end | 
.engine ⇒ Class
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 the default engine. One of:
| 28 29 30 31 | # File 'lib/aws-sdk-core/rpc_v2.rb', line 28 def engine set_default_engine unless @engine @engine end | 
.engine=(engine) ⇒ 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.
| 19 20 21 | # File 'lib/aws-sdk-core/rpc_v2.rb', line 19 def engine=(engine) @engine = Class === engine ? engine : load_engine(engine) end | 
.set_default_engine ⇒ 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.
| 42 43 44 45 46 47 48 49 50 | # File 'lib/aws-sdk-core/rpc_v2.rb', line 42 def set_default_engine [:cbor].each do |name| @engine ||= try_load_engine(name) end unless @engine raise 'Unable to find a compatible cbor library.' end end |