Class: Omise::Refund
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from OmiseObject
location, resource
Methods included from Attributes
#[], #as_json, #assign_attributes, #attributes, #destroyed?, #initialize, #key?, #location, #method_missing, #respond_to?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Omise::Attributes
Class Method Details
.search ⇒ Object
8
9
10
|
# File 'lib/omise/refund.rb', line 8
def self.search
SearchScope.new(:refund)
end
|
Instance Method Details
#charge(options = {}) ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/omise/refund.rb', line 16
def charge(options = {})
if !defined?(Charge)
require "omise/charge"
end
expand_attribute Charge, "charge", options
end
|
#reload(attributes = {}) ⇒ Object
12
13
14
|
# File 'lib/omise/refund.rb', line 12
def reload(attributes = {})
assign_attributes resource(attributes).get(attributes)
end
|
#transaction(options = {}) ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/omise/refund.rb', line 24
def transaction(options = {})
if !defined?(Transaction)
require "omise/transaction"
end
expand_attribute Transaction, "transaction", options
end
|