Class: Iodized::Features::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/iodized/features.rb

Instance Method Summary collapse

Instance Method Details

#process_feature_set(seqid, iprot, oprot) ⇒ Object



57
58
59
60
61
62
# File 'lib/iodized/features.rb', line 57

def process_feature_set(seqid, iprot, oprot)
  args = read_args(iprot, Feature_set_args)
  result = Feature_set_result.new()
  result.success = @handler.feature_set(args.state)
  write_result(result, oprot, 'feature_set', seqid)
end

#process_ping(seqid, iprot, oprot) ⇒ Object



50
51
52
53
54
55
# File 'lib/iodized/features.rb', line 50

def process_ping(seqid, iprot, oprot)
  args = read_args(iprot, Ping_args)
  result = Ping_result.new()
  result.success = @handler.ping()
  write_result(result, oprot, 'ping', seqid)
end