Sha256: e830d263b43f2867afc4d42f1c593bf57242874d30a1db805f3eea9cb1ac45f8

Contents?: true

Size: 278 Bytes

Versions: 5

Compression:

Stored size: 278 Bytes

Contents

module Githu3

  class User < Githu3::Resource
    
    has_many :repos
    has_many :orgs
    has_many :keys
    has_many :followers, :class_name => :user
    has_many :following, :class_name => :user
    
    
    def to_s
      login || email || name
    end
    
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
githu3-0.0.8 lib/githu3/user.rb
githu3-0.0.7 lib/githu3/user.rb
githu3-0.0.6 lib/githu3/user.rb
githu3-0.0.5 lib/githu3/user.rb
githu3-0.0.4 lib/githu3/user.rb