Class: DangerBoss::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/danger_boss/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#alertsObject



11
12
13
# File 'lib/danger_boss/client.rb', line 11

def alerts
  @alerts ||= AlertService.new(driver: driver)
end