Class: WebbyNode::DNS::ZoneList

Inherits:
APIObject show all
Defined in:
lib/webbynode-api/dns.rb

Overview

Represents an Array of all DNS zones present on the API account

Author:

  • Shane Sveller

Since:

  • 0.1.0

Version:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from APIObject

#data, #email, #token

Instance Method Summary collapse

Methods inherited from APIObject

#auth_get, #auth_post, auth_post, #method_missing

Constructor Details

#initialize(options = {}) ⇒ ZoneList

Fetches an Array of all zones into @data.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :email (String)

    E-mail address used for API access

  • :token (String)

    API token used for API access

Since:

  • 0.1.0



127
128
129
130
# File 'lib/webbynode-api/dns.rb', line 127

def initialize(options = {})
  super(options)
  @data = auth_get("/api/xml/dns")["hash"]["zones"]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class WebbyNode::APIObject