Sha256: 50778405d858c2b1133d988ec6f9d897230a7b8651aa30db8c51eef8ae479f99
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
module TimeCamp class User < TimeCamp::Resource attr_reader :user_id, :email, :login_count, :display_name, :synch_time, :login_time, :group_id ################# # CLASS METHODS # ################# def self.get response = TimeCamp::Request.get(resource_name) return UserCollection.parse(response) end #################### # INSTANCE METHODS # #################### private def load_attributes(response) @user_id = response[:user_id] @email = response[:email] @login_count = response[:login_count] @display_name = response[:display_name] @synch_time = response[:synch_time] @login_time = response[:login_time] @group_id = response[:group_id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-timecamp-0.0.2 | lib/ruby-timecamp/resources/user.rb |