class Omise::Occurrence

Public Class Methods

retrieve(id, attributes = {}) click to toggle source
# File lib/omise/occurrence.rb, line 7
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/occurrence.rb, line 19
def reload(attributes = {})
  assign_attributes resource(attributes).get(attributes)
end
schedule(options = {}) click to toggle source
# File lib/omise/occurrence.rb, line 11
def schedule(options = {})
  if !defined?(Schedule)
    require "omise/schedule"
  end

  expand_attribute Schedule, "schedule", options
end