Class: Bvr::CallOverview
- Inherits:
-
Object
- Object
- Bvr::CallOverview
- Includes:
- HappyMapper
- Defined in:
- lib/bvr/call_overview.rb
Constant Summary collapse
- API_COMMAND =
'CallOverview'- VALID_OPTIONS =
Valid Options:
Variable Value Option Description command calloverview Mandatory username X..140 Mandatory the username of the reseller password X..100 Mandatory the password of the reseller customer X..140 Mandatory the username of the customer date YYYY-MM-DD hh:nn:ss Optional the datetime from which to start retrieving the history, current datetime is default callid N..1000000 Optional the callid from which to start retrieving the history, 0 is default recordcount 1 - 500 Optional the maximum number of records returned, 10 is default, 500 is maximum direction forward / backward Optional the direction to search, backward is default [:date, :callid, :recordcount, :direction]
Class Method Summary collapse
Class Method Details
.find(customer_id, options = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/bvr/call_overview.rb', line 24 def self.find(customer_id, ={}) raise ArgumentError.new('Unknown Argument') unless self.() params = { command: API_COMMAND, customer: customer_id } .merge! params self.parse(self.result()).first #only one <Calls> tag end |