class PDNS::CryptoKey

Cryptokey for a zone.

Attributes

id[R]

@return [Integer] the ID of the cryptokey.

Public Class Methods

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

Creates a cryptokey object.

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

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