Module: Thrift::Types::Known::Any
- Defined in:
- lib/thrift/types/known/any/any.rb,
lib/thrift/types/known/any/any_types.rb,
lib/thrift/types/known/any/any_constants.rb
Defined Under Namespace
Classes: Any, CustomYAML, MetaCodec, ProtocolCodec
Constant Summary collapse
- DEFAULT_CODEC =
ProtocolCodec.new(JsonProtocolFactory.new)
- JSON_CODEC =
MetaCodec.new(JSON)
- YAML_CODEC =
MetaCodec.new(CustomYAML)
- CODECS =
{ '' => DEFAULT_CODEC, 'json' => JSON_CODEC, 'yaml' => YAML_CODEC, 'yml' => YAML_CODEC }
Class Method Summary collapse
Class Method Details
.from_object(obj, codec_key = '') ⇒ Object
122 123 124 |
# File 'lib/thrift/types/known/any/any.rb', line 122 def from_object(obj, codec_key = '') Any.from_object(obj, codec_key) end |