Module: Fabulous

Defined in:
lib/fabulous.rb,
lib/fabulous/cli.rb,
lib/fabulous/client.rb,
lib/fabulous/errors.rb,
lib/fabulous/version.rb,
lib/fabulous/response.rb,
lib/fabulous/configuration.rb,
lib/fabulous/resources/dns.rb,
lib/fabulous/resources/base.rb,
lib/fabulous/resources/domain.rb

Defined Under Namespace

Modules: Resources Classes: AuthenticationError, CLI, Client, Configuration, ConfigurationError, DNS, Error, Nameservers, RateLimitError, RequestError, Response, ResponseError, TimeoutError

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



17
18
19
# File 'lib/fabulous.rb', line 17

def configuration
  @configuration
end

Class Method Details

.clientObject



24
25
26
# File 'lib/fabulous.rb', line 24

def client
  @client ||= Client.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
22
# File 'lib/fabulous.rb', line 19

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.reset!Object



28
29
30
31
# File 'lib/fabulous.rb', line 28

def reset!
  @client = nil
  self.configuration = Configuration.new
end