Class: Danger::RepoInfo
- Inherits:
-
Object
- Object
- Danger::RepoInfo
- Defined in:
- lib/danger/ci_source/support/repo_info.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(slug, id) ⇒ RepoInfo
constructor
A new instance of RepoInfo.
Constructor Details
#initialize(slug, id) ⇒ RepoInfo
Returns a new instance of RepoInfo.
7 8 9 10 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 7 def initialize(slug, id) @slug = slug @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 5 def id @id end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
5 6 7 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 5 def slug @slug end |