Sha256: 5c670b795bbdfce35e55910040353752be34d98f4ea7bd2c254ee98d93a46003

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

require 'travis/client'

module Travis
  module Client
    class User < Entity
      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

      alias syncing? is_syncing
      alias correct_scopes? correct_scopes
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
travis-1.0.3 lib/travis/client/user.rb
travis-1.0.2 lib/travis/client/user.rb
travis-1.0.1 lib/travis/client/user.rb
travis-1.0.0 lib/travis/client/user.rb