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.
5 6 7 8 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 5 def initialize(slug, id) @slug = slug @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 3 def id @id end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
3 4 5 |
# File 'lib/danger/ci_source/support/repo_info.rb', line 3 def slug @slug end |