Class: DangerBoss::Client
- Inherits:
-
Object
- Object
- DangerBoss::Client
- Defined in:
- lib/danger_boss/client.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
Instance Method Summary collapse
- #alerts ⇒ Object
-
#initialize(driver:) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(driver:) ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/danger_boss/client.rb', line 7 def initialize(driver:) @driver = driver end |
Instance Attribute Details
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
5 6 7 |
# File 'lib/danger_boss/client.rb', line 5 def driver @driver end |
Instance Method Details
#alerts ⇒ Object
11 12 13 |
# File 'lib/danger_boss/client.rb', line 11 def alerts @alerts ||= AlertService.new(driver: driver) end |