Sha256: 5d0f0faf51d706b802d343385e240e566d61df1ab60e1daeca4352c5a9b360de

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

module ZerigoDNS
  #@attr [String] api_key The Api key generated by Zerigo DNS
  #@attr [String] user Your e-mail address
  #@attr [Boolean] secure Whether to use HTTPS
  class Config
    
    BASE_ATTRIBUTES = %w(api_key site secure user password)
      BASE_ATTRIBUTES.each do |attr|
        define_method attr do
          ZerigoDNS::Base.send(attr)
        end
        
        define_method "#{attr}=" do |val|
          ZerigoDNS::Base.send("#{attr}=", val)
        end
      end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zerigodns-1.0.2 lib/zerigodns/config.rb
zerigodns-1.0.1 lib/zerigodns/config.rb
zerigodns-1.0.0 lib/zerigodns/config.rb