Module: PartyBus
- Defined in:
- lib/party_bus.rb,
lib/party_bus/client.rb,
lib/party_bus/version.rb,
lib/party_bus/configuration.rb,
lib/party_bus/events/create.rb
Defined Under Namespace
Modules: Events
Classes: Client, Configuration
Constant Summary
collapse
- LOCK =
Mutex.new
- VERSION =
"0.4.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
24
25
26
27
|
# File 'lib/party_bus.rb', line 24
def configuration
@configuration = nil unless defined?(@configuration)
@configuration || LOCK.synchronize { @configuration ||= PartyBus::Configuration.new }
end
|
20
21
22
|
# File 'lib/party_bus.rb', line 20
def configure(validate_api_key=true)
yield(configuration) if block_given?
end
|