Class: CodeReviewLeaderboard::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/code_review_leaderboard/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ Repository

Returns a new instance of Repository.



7
8
9
# File 'lib/code_review_leaderboard/repository.rb', line 7

def initialize(name:)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/code_review_leaderboard/repository.rb', line 5

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/code_review_leaderboard/repository.rb', line 15

def ==(other)
  name == other.name
end

#pullsObject



11
12
13
# File 'lib/code_review_leaderboard/repository.rb', line 11

def pulls
  Pulls.for(repository: self)
end