Class: Danger::RepoInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/danger/ci_source/support/repo_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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

#slugObject (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