Class: TicketEvolution::CreditMemos
- Includes:
- Modules::List, Modules::Show, Modules::Update
- Defined in:
- lib/ticket_evolution/credit_memos.rb,
lib/ticket_evolution/credit_memos/credit_memo_payments.rb
Defined Under Namespace
Classes: CreditMemoPayments
Constant Summary
Constants included from Endpoint::RequestHandler
Endpoint::RequestHandler::CODES
Instance Method Summary collapse
Methods included from Modules::Update
#build_for_update, included, #update
Methods included from Modules::Show
Methods included from Modules::List
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
#cards(params = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ticket_evolution/credit_memos.rb', line 7 def cards(params = nil) ensure_id request(:GET, "/cards", params) do |response| singular_class.new(response.body.merge({ :status_code => response.response_code, :server_message => response., :connection => response.body[:connection] })) end end |