module Iremix class User attr_accessor :id, :first_name, :last_name, :name, :email, :profile_photo, :created_at, :updated_at, :status def initialize(attrs = {}) attrs.each do |k, v| send("#{k}=", v) end end class << self def current(token) response = token.get('/api/v1/people/current.json', :params => { :access_token => token.token }) new(response.parsed) end end end end