Module: TWW
- Defined in:
- lib/tww.rb,
lib/tww/rest.rb,
lib/tww/client.rb,
lib/tww/testing.rb,
lib/tww/version.rb,
lib/tww/response.rb
Defined Under Namespace
Classes: Client, REST, Response, Testing
Constant Summary collapse
- VERSION =
'2.0.2'
Class Attribute Summary collapse
-
.factory ⇒ Object
Returns the value of attribute factory.
Class Method Summary collapse
- .client(options = {}) ⇒ Object
- .config ⇒ Object
- .disable_testing! ⇒ Object
- .enable_testing! ⇒ Object
Class Attribute Details
.factory ⇒ Object
Returns the value of attribute factory.
13 14 15 |
# File 'lib/tww.rb', line 13 def factory @factory end |
Class Method Details
.client(options = {}) ⇒ Object
19 20 21 |
# File 'lib/tww.rb', line 19 def client( = {}) @factory.new(@config.merge()) end |
.config ⇒ Object
15 16 17 |
# File 'lib/tww.rb', line 15 def config @config.tap { |config| yield(config) if block_given? } end |