Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Code
- require 'rubygems'
- require 'active_record'
- ActiveRecord::Base.establish_connection(
- :adapter => 'oracle',
- :database => '10.0.1.22/xe',
- :username => 'mine',
- :password => 'mine')
- class PcoOutboundservice < ActiveRecord::Base
- set_table_name "PCO_OUTBOUNDSERVICE"
- set_sequence_name "PCO_OUTBOUNDSERVICESEQ"
- end
- service = PcoOutboundservice.find(:all)
- puts service.inspect
- ##Output
- mayluc:Desktop jsgoecke$ ruby test_ar.rb
- [#<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">]
- mayluc:Desktop jsgoecke$
Add Comment
Please, Sign In to add comment