Class: TicketEvolution::CreditMemoPayment

Inherits:
Model
  • Object
show all
Defined in:
lib/ticket_evolution/credit_memo_payment.rb

Instance Method Summary collapse

Methods inherited from Model

#attributes, #attributes=, #endpoint, #initialize, #plural_class, #plural_class_name, #scope

Methods inherited from Builder

#id, #id=, #initialize, #to_hash

Methods included from SingularClass

#singular_class

Constructor Details

This class inherits a constructor from TicketEvolution::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TicketEvolution::Model

Instance Method Details

#apply(params = {}) ⇒ Object



4
5
6
# File 'lib/ticket_evolution/credit_memo_payment.rb', line 4

def apply(params = {})
  plural_class.new(:parent => self.endpoint.parent, :id => self.id).apply(params)
end

#cancel(params = {}) ⇒ Object



8
9
10
# File 'lib/ticket_evolution/credit_memo_payment.rb', line 8

def cancel(params = {})
  plural_class.new(:parent => self.endpoint.parent, :id => self.id).cancel
end