Method: Codelocks::Client#initialize
- Defined in:
- lib/codelocks/client.rb
#initialize(attributes = {}) ⇒ Codelocks::Client
Set configuration variables on instantiation
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/codelocks/client.rb', line 45 def initialize(attributes = {}) attributes.each do |key, val| setter = :"#{key}=" if respond_to?(setter) send(setter, val) end end self end |