class Omise::Chain
Public Class Methods
list(attributes = {})
click to toggle source
# File lib/omise/chain.rb, line 12 def self.list(attributes = {}) List.new resource(location, attributes).get(attributes) end
retrieve(id, attributes = {})
click to toggle source
# File lib/omise/chain.rb, line 8 def self.retrieve(id, attributes = {}) new resource(location(id), attributes).get(attributes) end
Public Instance Methods
reload(attributes = {})
click to toggle source
# File lib/omise/chain.rb, line 16 def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end
revoke(attributes = {})
click to toggle source
# File lib/omise/chain.rb, line 20 def revoke(attributes = {}) assign_attributes nested_resource("revoke", attributes).post(attributes) end