Sha256: 92efbf8971472fb112ff88cb3160448314115bebd5c0a6012706a00090a6f17d
Contents?: true
Size: 567 Bytes
Versions: 9
Compression:
Stored size: 567 Bytes
Contents
require "omise/object" require "omise/list" module Omise class Chain < OmiseObject self.endpoint = "/chains" def self.retrieve(id, attributes = {}) new resource(location(id), attributes).get(attributes) end def self.list(attributes = {}) List.new resource(location, attributes).get(attributes) end def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end def revoke(attributes = {}) assign_attributes nested_resource("revoke", attributes).post(attributes) end end end
Version data entries
9 entries across 9 versions & 1 rubygems