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
9
10
11
|
# File 'lib/omise/refund.rb', line 9
def self.search
SearchScope.new(:refund)
end
|
Instance Method Details
#charge(options = {}) ⇒ Object
17
18
19
|
# File 'lib/omise/refund.rb', line 17
def charge(options = {})
expand_attribute Charge, "charge", options
end
|
#reload(attributes = {}) ⇒ Object
13
14
15
|
# File 'lib/omise/refund.rb', line 13
def reload(attributes = {})
assign_attributes resource(attributes).get(attributes)
end
|
#transaction(options = {}) ⇒ Object
21
22
23
|
# File 'lib/omise/refund.rb', line 21
def transaction(options = {})
expand_attribute Transaction, "transaction", options
end
|