Module: Thrift::Struct

Extended by:
Base64Extension
Defined in:
lib/thrift/base64.rb

Instance Method Summary collapse

Methods included from Base64Extension

included

Instance Method Details

#to_base64(protocol = BinaryProtocolFactory.new) ⇒ Object



44
45
46
# File 'lib/thrift/base64.rb', line 44

def to_base64(protocol = BinaryProtocolFactory.new)
  Base64Serializer.new(protocol).serialize self
end

#to_compact_base64Object



48
49
50
# File 'lib/thrift/base64.rb', line 48

def to_compact_base64
  to_base64 CompactProtocolFactory.new
end