Sha256: c20795555027a498a0ca411106e9747c1c62af6ebff9e44c6a8ff6d88cb09824
Contents?: true
Size: 534 Bytes
Versions: 18
Compression:
Stored size: 534 Bytes
Contents
require "omise/object" require "omise/vault" module Omise class Token < OmiseObject self.endpoint = "/tokens" extend Vault def self.retrieve(id, attributes = {}) new resource(location(id), attributes).get(attributes) end def self.create(attributes = {}) new resource(location, attributes).post(attributes) end def reload(attributes = {}) assign_attributes resource(attributes).get(attributes) end def self.preprocess_attributes!(attributes) # noop end end end
Version data entries
18 entries across 18 versions & 1 rubygems