Method: Particle::Client#initialize
- Defined in:
- lib/particle/client.rb
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
26 27 28 29 30 31 |
# File 'lib/particle/client.rb', line 26 def initialize( = {}) # Use options passed in, but fall back to module defaults Particle::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || Particle.instance_variable_get(:"@#{key}")) end end |