Sha256: f858f58b52ac13ec8ac1dd15ad9d4c299684f6088e08a535561e187e26ce647a

Contents?: true

Size: 619 Bytes

Versions: 16

Compression:

Stored size: 619 Bytes

Contents

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
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
travis-1.4.0 lib/travis/client/user.rb
travis-1.3.1 lib/travis/client/user.rb
travis-1.3.0 lib/travis/client/user.rb
travis-1.2.8 lib/travis/client/user.rb
travis-1.2.7 lib/travis/client/user.rb
travis-1.2.6 lib/travis/client/user.rb
travis-1.2.5 lib/travis/client/user.rb
travis-1.2.4 lib/travis/client/user.rb
travis-1.2.3 lib/travis/client/user.rb
travis-1.2.2 lib/travis/client/user.rb
travis-1.2.1 lib/travis/client/user.rb
travis-1.2.0 lib/travis/client/user.rb
travis-1.1.3 lib/travis/client/user.rb
travis-1.1.2 lib/travis/client/user.rb
travis-1.1.1 lib/travis/client/user.rb
travis-1.1.0 lib/travis/client/user.rb