Class: Repository
- Inherits:
-
Object
- Object
- Repository
- Defined in:
- lib/issue_db/models/repository.rb
Instance Attribute Summary collapse
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize(repo) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(repo) ⇒ Repository
Returns a new instance of Repository.
7 8 9 10 |
# File 'lib/issue_db/models/repository.rb', line 7 def initialize(repo) @repo = repo validate! end |
Instance Attribute Details
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
6 7 8 |
# File 'lib/issue_db/models/repository.rb', line 6 def full_name @full_name end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
6 7 8 |
# File 'lib/issue_db/models/repository.rb', line 6 def owner @owner end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
6 7 8 |
# File 'lib/issue_db/models/repository.rb', line 6 def repo @repo end |