Class: Thrift::JsonProtocolFactory

Inherits:
BaseProtocolFactory show all
Defined in:
lib/thrift/protocol/json_protocol.rb

Instance Method Summary collapse

Instance Method Details

#get_protocol(trans) ⇒ Object



778
779
780
# File 'lib/thrift/protocol/json_protocol.rb', line 778

def get_protocol(trans)
  return Thrift::JsonProtocol.new(trans)
end

#to_sObject



782
783
784
# File 'lib/thrift/protocol/json_protocol.rb', line 782

def to_s
  "json"
end