module Assembly
Constants
- VERSION
Attributes
config[RW]
Public Class Methods
client(options=nil)
click to toggle source
nil - standard client Config
object - new client with config Hash - new client with config extended by hash
# File lib/assembly_client.rb, line 56 def client(options=nil) @client ||= Client.new return @client if options.nil? return options if options.is_a?(Client) client_config = options.is_a?(Config) ? options : @config.copy_with_overrides(options) Client.new(client_config) end
configure(options=nil) { |config| ... }
click to toggle source
# File lib/assembly_client.rb, line 48 def configure(options=nil) @config.merge(options) if options.is_a?(Hash) yield(config) if block_given? end