class Omise::Schedule
Public Class Methods
create(attributes = {})
click to toggle source
# File lib/omise/schedule.rb, line 17 def self.create(attributes = {}) new resource(location, attributes).post(attributes) end
list(attributes = {})
click to toggle source
# File lib/omise/schedule.rb, line 9 def self.list(attributes = {}) List.new resource(location, attributes).get(attributes) end
retrieve(id, attributes = {})
click to toggle source
# File lib/omise/schedule.rb, line 13 def self.retrieve(id, attributes = {}) new resource(location(id), attributes).get(attributes) end
Public Instance Methods
destroy(attributes = {})
click to toggle source
# File lib/omise/schedule.rb, line 25 def destroy(attributes = {}) assign_attributes resource(attributes).delete end
destroyed?()
click to toggle source
# File lib/omise/schedule.rb, line 29 def destroyed? status == "deleted" end
occurrences()
click to toggle source
# File lib/omise/schedule.rb, line 21 def occurrences list_attribute OccurrenceList, "occurrences" end