Sha256: 782eff430ed0678e191f2c6c252b5f2443cf084010f8719d74740d43374d2a82
Contents?: true
Size: 937 Bytes
Versions: 20
Compression:
Stored size: 937 Bytes
Contents
# Since this relies on finding holdings that exist, you need to run it in # a service wave AFTER anything that might generate holdings. class TxtHoldingExport < AjaxExport def initialize(config) @display_text = 'Send to phone' @display_text_i18n = "display_text" @form_controller = "export_email" @form_action = "txt" # providers is a hash of: # user-presentable-string => hostname for email to txt service. @providers = { "AT&T" => "txt.att.net", "Nextel" => "messaging.nextel.com", "Sprint" => "messaging.sprintpcs.com", "T-Mobile"=> "tmomail.net", "Verizon"=> "vtext.com", "Virgin"=> "vmobl.com" } super(config) end def handle(request) holdings = request.get_service_type('holding', { :refresh => true }) unless holdings.nil? or holdings.empty? super(request) else return request.dispatched(self, true) end end end
Version data entries
20 entries across 20 versions & 1 rubygems