Sha256: fc2a021b964a728162884c0bd5fc6650b7a6c3b5afe6447fc158f3bc65e3c0a1
Contents?: true
Size: 856 Bytes
Versions: 6
Compression:
Stored size: 856 Bytes
Contents
module Gitrob class Organization include DataMapper::Resource property :id, Serial property :name, String, :length => 255, :index => true property :login, String, :length => 255, :index => true property :website, String, :length => 255 property :location, String, :length => 255 property :email, String, :length => 255 property :avatar_url, String, :length => 255 property :url, String, :length => 255 property :created_at, DateTime has n, :repos, :constraint => :destroy has n, :users, :constraint => :destroy has n, :blobs, :constraint => :destroy has n, :findings, :constraint => :destroy def username @login end def bio nil end def name @name.to_s.empty? ? @login : @name end end end
Version data entries
6 entries across 6 versions & 1 rubygems