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

Version Path
umlaut-4.1.7 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.6 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.5 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.4 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.3 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.2 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.1 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.0 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.0.pre3 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.0.pre.2 app/service_adaptors/txt_holding_export.rb
umlaut-4.1.0.pre.alpha.1 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.3 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.2 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.1 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0.beta5 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0.beta4 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0.beta3 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0.beta2 app/service_adaptors/txt_holding_export.rb
umlaut-4.0.0.beta1 app/service_adaptors/txt_holding_export.rb