Module: DIDWW
- Defined in:
- lib/DIDWW.rb,
lib/DIDWW/client.rb,
lib/DIDWW/version.rb,
lib/DIDWW/configuration.rb
Defined Under Namespace
Classes: Client, Configuration
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7
8
9
|
# File 'lib/DIDWW.rb', line 7
def configuration
@configuration
end
|
Class Method Details
14
15
16
|
# File 'lib/DIDWW.rb', line 14
def self.configure
yield configuration
end
|
.live? ⇒ Boolean
30
31
32
|
# File 'lib/DIDWW.rb', line 30
def self.live?
!configuration.sandbox
end
|
.mode ⇒ Object
22
23
24
|
# File 'lib/DIDWW.rb', line 22
def self.mode
configuration.sandbox ? :sandbox : :live
end
|
.reset ⇒ Object
18
19
20
|
# File 'lib/DIDWW.rb', line 18
def self.reset
@configuration = Configuration.new
end
|
.sandbox? ⇒ Boolean
26
27
28
|
# File 'lib/DIDWW.rb', line 26
def self.sandbox?
configuration.sandbox
end
|