Class: HubLink::Api::Review
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- HubLink::Api::Review
- Defined in:
- lib/hub_link/api/review.rb
Constant Summary collapse
- BOTS =
%w(houndci-bot cookpad-devel)
Instance Method Summary collapse
Instance Method Details
#approval? ⇒ Boolean
10 11 12 |
# File 'lib/hub_link/api/review.rb', line 10 def approval? state == "APPROVED" end |
#invalid? ⇒ Boolean
14 15 16 |
# File 'lib/hub_link/api/review.rb', line 14 def invalid? bot? || driveby? || draft? end |
#reviewer ⇒ Object
6 7 8 |
# File 'lib/hub_link/api/review.rb', line 6 def reviewer user&.login end |