class Travis::Client::User

def channels

def channels
  load_attribute(:is_syncing) # dummy to trigger load, as channels might not be included
  attributes['channels'] ||= ['common']
end

def repositories

def repositories
  attributes['repositories'] ||= session.get('/users/permissions')['permissions']
end

def sync

def sync
  session.post_raw('/users/sync')
  reload
end

def synced_at=(time)

def synced_at=(time)
  set_attribute(:synced_at, time(time))
end