Module: Thrift::Base64Extension::FromBase64
- Defined in:
- lib/thrift/base64.rb
Instance Method Summary collapse
- #from_base64(blob, protocol = BinaryProtocolFactory.new) ⇒ Object
- #from_compact_base64(blob) ⇒ Object
Instance Method Details
#from_base64(blob, protocol = BinaryProtocolFactory.new) ⇒ Object
24 25 26 |
# File 'lib/thrift/base64.rb', line 24 def from_base64(blob, protocol = BinaryProtocolFactory.new) Base64Deserializer.new(protocol).deserialize(new, blob) end |
#from_compact_base64(blob) ⇒ Object
28 29 30 |
# File 'lib/thrift/base64.rb', line 28 def from_compact_base64(blob) from_base64 blob, CompactProtocolFactory.new end |