class Wonde::Attendance
Public Class Methods
new(token, id=false)
click to toggle source
Calls superclass method
Wonde::Endpoints::new
# File lib/endpoints/attendance.rb, line 4 def initialize(token, id=false) super(token, id) self.uri = @@uri self.uri = id + '/' + @@uri if id self.uri = self.uri.gsub("//", "/").chomp("/") end
Public Instance Methods
sessionRegister(register)
click to toggle source
# File lib/endpoints/attendance.rb, line 11 def sessionRegister(register) throw InvalidSessionException unless register.class == SessionRegister return self.post(register) end