Guest User

Untitled

a guest
Feb 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. ##Code
  2. require 'rubygems'
  3. require 'active_record'
  4.  
  5. ActiveRecord::Base.establish_connection(
  6. :adapter => 'oracle',
  7. :database => '10.0.1.22/xe',
  8. :username => 'mine',
  9. :password => 'mine')
  10.  
  11. class PcoOutboundservice < ActiveRecord::Base
  12. set_table_name "PCO_OUTBOUNDSERVICE"
  13. set_sequence_name "PCO_OUTBOUNDSERVICESEQ"
  14. end
  15.  
  16. service = PcoOutboundservice.find(:all)
  17.  
  18. puts service.inspect
  19.  
  20. ##Output
  21. mayluc:Desktop jsgoecke$ ruby test_ar.rb
  22. [#<PcoOutboundservice id: #<BigDecimal:125fc50,'0.1E3',4(8)>, name: "TEST SERVICE - 4155551212", status: "D", schedulehours: nil, maxdaily: 3, maxtotal: 15, maxbusysignal: 10, maxnoanswer: 6, ringsnoanswer: 6, maxanswermachine: 6, maxfax: 5, maxinvgenreason: 5, guid: nil, alternatequeues: "N", alternateinitial: #<BigDecimal:125ef1c,'0.5E1',4(8)>, alternateinvalid: #<BigDecimal:125eeb8,'0.1E2',4(8)>, minbufferigr: nil, maxbufferigr: nil, minbufferscheduled: nil, maxbufferscheduled: nil, minbufferinitial: nil, maxbufferinitial: nil, busysignalint: #<BigDecimal:125ed64,'0.2E2',4(8)>, noanswerint: #<BigDecimal:125eb84,'0.12E3',4(8)>, answermachineint: #<BigDecimal:125e83c,'0.12E3',4(8)>, faxint: #<BigDecimal:125e634,'0.6E2',4(8)>, invgenreasonint: #<BigDecimal:125e5d0,'0.12E3',4(8)>, abandonedint: #<BigDecimal:125e56c,'0.36E3',4(8)>, detectanswermachine: "N", scheduledexpiration: #<BigDecimal:125e4b8,'0.6E2',4(8)>, phoneprefix: "313?", phoneprefixposition: nil, outboundtype: false, predictivetype: false, predictivetime: nil, predictivelevel: 1, predictiverate: 100, outboundskill: nil, outboundvdn: nil, previewvdn: nil, enablepreviewmaxtime: "N", previewmaxtime: nil, integrationtype: false, integratedappfile: nil, programid: nil, ctilink: "10.0.1.22#6500", enablesoftphone: "N", enablerecondemand: "N", enablecallcapturing: "N", billinggroup: nil, scriptid: nil, enablecustcallhours: "N", checkagentavail: "N", enableminagentsavailable: "N", minagentsavailable: nil, concurrentcalls: 1, enablealtphones: "N", enableanswersound: "N", minacwtime: #<BigDecimal:125ca78,'0.0',4(8)>, maxacwtime: #<BigDecimal:125ca14,'0.0',4(8)>, maxacwqcode: nil, resetcountersonsched: "N", enablesendmail: "N", mailboxid: nil, enabletimezone: "N", timezoneid: nil, enableschedlimitdate: "N", schedulinglimitdated: "2008-11-15 00:00:00", qualifcontintegration: "N", predautointerval: 1200, predautoavailtime: 20, predautomaxconccalls: 5, enablepreddefauto: "N", predautodefcontprob: nil, predautodefclasstime: nil, predautodefhandletime: nil, stopreasongroupid: #<BigDecimal:125bda8,'0.0',4(8)>, resourceprofileid: #<BigDecimal:125bd44,'0.0',4(8)>, establishedurl: nil, closedurl: nil, screenrecording: "N", screenprofileid: nil, enablefindmail: "N">]
  23. mayluc:Desktop jsgoecke$
Add Comment
Please, Sign In to add comment