Sha256: 60f27c3c34604df179670aef843ee7eea26d9797f6b48b7ccf6da6277f50d001

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

require 'travis/client'

module Travis
  module Client
    class Account < Entity
      attributes :name, :login, :type, :repos_count, :subscribed

      one :account
      many :accounts

      inspect_info :login

      def subscribed
        attributes.fetch('subscribed') { true }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
travis-1.5.6.travis.297.4 lib/travis/client/account.rb
travis-1.5.6.travis.296.4 lib/travis/client/account.rb
travis-1.5.5 lib/travis/client/account.rb
travis-1.5.4 lib/travis/client/account.rb
travis-1.5.3 lib/travis/client/account.rb
travis-1.5.2 lib/travis/client/account.rb
travis-1.5.1 lib/travis/client/account.rb
travis-1.5.0 lib/travis/client/account.rb