Class: Radar::API::SecurityService::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/radar/api/security_service.rb

Instance Method Summary collapse

Instance Method Details

#process_price(seqid, iprot, oprot) ⇒ Object



125
126
127
128
129
130
# File 'lib/radar/api/security_service.rb', line 125

def process_price(seqid, iprot, oprot)
  args = read_args(iprot, Price_args)
  result = Price_result.new()
  result.success = @handler.price(args.id, args.date)
  write_result(result, oprot, 'price', seqid)
end

#process_price_change(seqid, iprot, oprot) ⇒ Object



132
133
134
135
136
137
# File 'lib/radar/api/security_service.rb', line 132

def process_price_change(seqid, iprot, oprot)
  args = read_args(iprot, Price_change_args)
  result = Price_change_result.new()
  result.success = @handler.price_change(args.id, args.start_date, args.end_date)
  write_result(result, oprot, 'price_change', seqid)
end

#process_price_changes(seqid, iprot, oprot) ⇒ Object



139
140
141
142
143
144
# File 'lib/radar/api/security_service.rb', line 139

def process_price_changes(seqid, iprot, oprot)
  args = read_args(iprot, Price_changes_args)
  result = Price_changes_result.new()
  result.success = @handler.price_changes(args.id, args.start_date, args.end_date)
  write_result(result, oprot, 'price_changes', seqid)
end

#process_price_volatility(seqid, iprot, oprot) ⇒ Object



146
147
148
149
150
151
# File 'lib/radar/api/security_service.rb', line 146

def process_price_volatility(seqid, iprot, oprot)
  args = read_args(iprot, Price_volatility_args)
  result = Price_volatility_result.new()
  result.success = @handler.price_volatility(args.id, args.start_date, args.end_date)
  write_result(result, oprot, 'price_volatility', seqid)
end

#process_prices(seqid, iprot, oprot) ⇒ Object



118
119
120
121
122
123
# File 'lib/radar/api/security_service.rb', line 118

def process_prices(seqid, iprot, oprot)
  args = read_args(iprot, Prices_args)
  result = Prices_result.new()
  result.success = @handler.prices(args.id, args.start_date, args.end_date)
  write_result(result, oprot, 'prices', seqid)
end

#process_short_name(seqid, iprot, oprot) ⇒ Object



111
112
113
114
115
116
# File 'lib/radar/api/security_service.rb', line 111

def process_short_name(seqid, iprot, oprot)
  args = read_args(iprot, Short_name_args)
  result = Short_name_result.new()
  result.success = @handler.short_name(args.id)
  write_result(result, oprot, 'short_name', seqid)
end