Class: Repository
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Repository
- Defined in:
- app/models/repository.rb
Overview
An institution the produces finding aids
Instance Attribute Summary (collapse)
Has many (collapse)
Instance Method Summary (collapse)
-
- (String) pp_name
PrettyPrint repo name and code for display.
Instance Attribute Details
- (String) code
92 |
# File 'db/schema.rb', line 92 t.string "code", limit: 255, null: false |
- (DateTime) created_at
94 |
# File 'db/schema.rb', line 94 t.datetime "created_at" |
- (String) name
93 |
# File 'db/schema.rb', line 93 t.string "name", limit: 255, null: false |
- (DateTime) updated_at
95 |
# File 'db/schema.rb', line 95 t.datetime "updated_at" |
Instance Method Details
- (ActiveRecord::Relation<FindingAid>) finding_aids
3 |
# File 'app/models/repository.rb', line 3 has_many :finding_aids |
- (String) pp_name
PrettyPrint repo name and code for display
7 8 9 |
# File 'app/models/repository.rb', line 7 def pp_name "#{name} (#{code})" end |