class Omise::Token

Public Class Methods

create(attributes = {}) click to toggle source
# File lib/omise/token.rb, line 14
def self.create(attributes = {})
  new resource(location, attributes).post(attributes)
end
preprocess_attributes!(attributes) click to toggle source
# File lib/omise/token.rb, line 22
def self.preprocess_attributes!(attributes)
  # noop
end
retrieve(id, attributes = {}) click to toggle source
# File lib/omise/token.rb, line 10
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/token.rb, line 18
def reload(attributes = {})
  assign_attributes resource(attributes).get(attributes)
end