Method: Skykick::API#initialize
- Defined in:
- lib/skykick/api.rb
#initialize(options = {}) ⇒ Skykick::API
Initializes a new ‘Skykick::API` instance with the given options. The options are merged with the global Skykick settings to allow both global and per-instance customization.
25 26 27 28 29 30 31 32 33 |
# File 'lib/skykick/api.rb', line 25 def initialize( = {}) # Merge the provided options with the global Skykick configuration. = Skykick..merge() # Set each configuration key dynamically using the merged options. WrAPI::Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |