Class: Omise::Refund

Inherits:
OmiseObject show all
Defined in:
lib/omise/refund.rb

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

Instance Method Details

#charge(options = {}) ⇒ Object



13
14
15
# File 'lib/omise/refund.rb', line 13

def charge(options = {})
  expand_attribute Charge, "charge", options
end

#reload(attributes = {}) ⇒ Object



9
10
11
# File 'lib/omise/refund.rb', line 9

def reload(attributes = {})
  assign_attributes resource(attributes).get(attributes)
end

#transaction(options = {}) ⇒ Object



17
18
19
# File 'lib/omise/refund.rb', line 17

def transaction(options = {})
  expand_attribute Transaction, "transaction", options
end