class PDNS::Override

Override for a server.

Attributes

id[R]

@return [Integer] the ID of the override.

Public Class Methods

new(http, parent, id, info = {}) click to toggle source

Creates a configuration option object.

@param http [HTTP] An HTTP object for interaction with the PowerDNS server. @param parent [API] This object's parent. @param id [Integer] ID of the override. @param info [Hash] Optional information of the override.

# File lib/pdns_api/override.rb, line 36
def initialize(http, parent, id, info = {})
  @class  = :overrides
  @http   = http
  @parent = parent
  @id     = id
  @info   = info
  @url    = "#{parent.url}/#{@class}/#{id}"
end