Module: WhoisXMLAPI2
- Defined in:
- lib/whoisxmlapi2.rb,
lib/whoisxmlapi2/request.rb,
lib/whoisxmlapi2/version.rb,
lib/whoisxmlapi2/configuration.rb
Defined Under Namespace
Classes: Configuration, Request
Constant Summary
collapse
- VERSION =
"0.2.1"
Class Method Summary
collapse
Class Method Details
.config_instance ⇒ Object
20
21
22
|
# File 'lib/whoisxmlapi2.rb', line 20
def config_instance
@configuration
end
|
.configuration(params = {}) ⇒ Object
16
17
18
|
# File 'lib/whoisxmlapi2.rb', line 16
def configuration(params = {})
@configuration ||= Configuration.new(params)
end
|
24
25
26
27
28
29
|
# File 'lib/whoisxmlapi2.rb', line 24
def configure(params = {})
configuration(params) unless params.empty?
raise InvalidArgument, 'Block is required' if params.empty? && !block_given?
yield configuration if block_given?
end
|