Class: TicketEvolution::Reports
- Defined in:
- lib/ticket_evolution/reports.rb
Constant Summary
Constants included from Endpoint::RequestHandler
Endpoint::RequestHandler::CODES
Instance Method Summary collapse
Methods inherited from Endpoint
#base_path, #connection, #endpoint_name, #has_connection?, #id, #initialize, #method_missing
Methods included from SingularClass
Methods included from Endpoint::RequestHandler
#build_request, #collection_handler, #naturalize_response, #raw_handler, #request, #upload_history_handler
Methods inherited from Base
Constructor Details
This class inherits a constructor from TicketEvolution::Endpoint
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TicketEvolution::Endpoint
Instance Method Details
#build_for_reports(response) ⇒ Object
11 12 13 |
# File 'lib/ticket_evolution/reports.rb', line 11 def build_for_reports(response) response.body end |
#inventory(params = {}) ⇒ Object
7 8 9 |
# File 'lib/ticket_evolution/reports.rb', line 7 def inventory(params = {}) request(:GET, '/inventory', params, &method(:build_for_reports)) end |
#sales(params = {}) ⇒ Object
3 4 5 |
# File 'lib/ticket_evolution/reports.rb', line 3 def sales(params = {}) request(:GET, '/sales', params, &method(:build_for_reports)) end |