Class: PDNS::CryptoKey
Overview
Cryptokey for a zone.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
The ID of the cryptokey.
Attributes inherited from API
Instance Method Summary collapse
-
#initialize(http, parent, id, info = {}) ⇒ CryptoKey
constructor
Creates a cryptokey object.
Methods inherited from API
#change, #create, #delete, #ensure_array, #get, #info
Constructor Details
#initialize(http, parent, id, info = {}) ⇒ CryptoKey
Creates a cryptokey object.
-
http: An HTTP object for interaction with the PowerDNS server. -
parent: This object’s parent. -
id: Identifier of the cryptokey. -
info: Optional information about the cryptokey.
35 36 37 38 39 40 41 42 |
# File 'lib/pdns_api/cryptokey.rb', line 35 def initialize(http, parent, id, info = {}) @class = :cryptokeys @http = http @parent = parent @id = id @info = info @url = "#{parent.url}/#{@class}/#{id}" end |
Instance Attribute Details
#id ⇒ Object (readonly)
The ID of the cryptokey.
26 27 28 |
# File 'lib/pdns_api/cryptokey.rb', line 26 def id @id end |