Class: GrowlCar::Client

Inherits:
Object
  • Object
show all
Includes:
GrowlNotification, Request
Defined in:
lib/growl_car/client.rb

Instance Method Summary collapse

Methods included from GrowlNotification

#send_growl_notification

Constructor Details

#initialize(options = {}) ⇒ GrowlCar::Client

Initialize a new GrowlCar::Client

Parameters:

  • options (Hash) (defaults to: {})


14
15
16
17
18
19
20
21
22
# File 'lib/growl_car/client.rb', line 14

def initialize(options={})
  GrowlCar::Configuration.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key])
  end

  super()

  set_auth(@username, @password)
end