Class: PDNS::CryptoKey
Overview
Cryptokey for a zone.
Instance Attribute Summary collapse
-
#id ⇒ Integer
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.
36 37 38 39 40 41 42 43 |
# 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 |
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns the ID of the cryptokey.
26 27 28 |
# File 'lib/pdns_api/cryptokey.rb', line 26 def id @id end |