lib/travis/client/user.rb in travis-1.0.3 vs lib/travis/client/user.rb in travis-1.1.0

- old
+ new

@@ -1,17 +1,23 @@ require 'travis/client' module Travis module Client class User < Entity + # @!parse attr_reader :login, :name, :email, :gravatar_id, :locale, :is_syncing, :synced_at, :correct_scopes attributes :login, :name, :email, :gravatar_id, :locale, :is_syncing, :synced_at, :correct_scopes inspect_info :login one :user many :users def synced_at=(time) set_attribute(:synced_at, time(time)) + end + + def sync + session.post_raw('/users/sync') + reload end alias syncing? is_syncing alias correct_scopes? correct_scopes end