Sha256: f511c52b715d4f45d44875b07115bcaee7653864c34b70aa41e8581b5be726b3

Contents?: true

Size: 909 Bytes

Versions: 39

Compression:

Stored size: 909 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"
    @form_controller = "export_email"
    @form_action = "txt"
    # providers is a hash of:
    # user-presentable-string => hostname for email to txt service. 
    @providers = {
     "Cingular/AT&T" => "cingularme.com",
     "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

39 entries across 39 versions & 1 rubygems

Version Path
umlaut-3.3.1 app/service_adaptors/txt_holding_export.rb
umlaut-3.3.0 app/service_adaptors/txt_holding_export.rb
umlaut-3.2.0 app/service_adaptors/txt_holding_export.rb
umlaut-3.1.1 app/service_adaptors/txt_holding_export.rb
umlaut-3.1.0 app/service_adaptors/txt_holding_export.rb
umlaut-3.1.0.pre2 app/service_adaptors/txt_holding_export.rb
umlaut-3.1.0.pre1 app/service_adaptors/txt_holding_export.rb
umlaut-3.0.5 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.4 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.3 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.2 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.1 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0rc1 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta10 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta9 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta8 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta7 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta6 lib/service_adaptors/txt_holding_export.rb
umlaut-3.0.0beta5 lib/service_adaptors/txt_holding_export.rb