Class: ElephantDrive::ReportService
- Inherits:
-
BaseService
- Object
- BaseService
- ElephantDrive::ReportService
- Defined in:
- lib/elephant-drive-service/report_service.rb
Instance Method Summary collapse
Methods inherited from BaseService
Methods included from ResponseBuilder
#generate_add_customer_response, #generate_average_usage_report_response, #generate_usage_statistics
Methods included from MessageBuilder
#add_customer_message, #base_user_message, #check_username_availability_message, #customer_list_message, #deactivate_customer_message, #get_customer_list_by_reg_date_message, #modify_subscription_message, #reactivate_customer_message, #reset_password_message, #search_customer_message
Constructor Details
This class inherits a constructor from ElephantDrive::BaseService
Instance Method Details
#average_usage_report(snapshot_date) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/elephant-drive-service/report_service.rb', line 6 def average_usage_report snapshot_date extractor = execute(:get_customer_list) { { message: (@config.partner_id,snapshot_date), soap_action: "http://svc.elephantdrive.com/ese/GetCustomerListByRegDateAndMaxRow" } }.ending_with(:by_reg_date_and_max_row) raise extractor[:method_detail] unless extractor[:method_result] == 'Success' generate_average_usage_report_response extractor end |