Module: Namecheap

Extended by:
Namecheap
Included in:
Namecheap
Defined in:
lib/namecheap.rb,
lib/namecheap/ns.rb,
lib/namecheap/api.rb,
lib/namecheap/dns.rb,
lib/namecheap/ssl.rb,
lib/namecheap/users.rb,
lib/namecheap/config.rb,
lib/namecheap/domains.rb,
lib/namecheap/version.rb,
lib/namecheap/transfers.rb,
lib/namecheap/whois_guard.rb

Defined Under Namespace

Modules: Config Classes: Api, Dns, Domains, Ns, Ssl, Transfers, Users, Whois_Guard

Constant Summary collapse

VERSION =
"0.2.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#domainsObject

Returns the value of attribute domains.



33
34
35
# File 'lib/namecheap.rb', line 33

def domains
  @domains
end

Instance Method Details

#configureConfig Also known as: config

Sets the Namecheap configuration options. Best used by passing a block.

Examples:

Set up configuration options.

Namecheap.configure do |config|
  config.key = "apikey"
  config.username = "apiuser"
  config.client_ip = "127.0.0.1"
end

Returns:

  • (Config)

    The configuration obejct.



21
22
23
# File 'lib/namecheap.rb', line 21

def configure
  block_given? ? yield(Config) : Config
end