Class: PDNS::CryptoKey

Inherits:
API
  • Object
show all
Defined in:
lib/pdns_api/cryptokey.rb

Overview

Zone CryptoKey

Instance Attribute Summary

Attributes inherited from API

#class, #url, #version

Instance Method Summary collapse

Methods inherited from API

#create, #delete, #ensure_array, #get, hash_string_to_sym, hash_sym_to_string, #info

Constructor Details

#initialize(http, parent, id, info = {}) ⇒ CryptoKey

Returns a new instance of CryptoKey.



5
6
7
8
9
10
11
12
# File 'lib/pdns_api/cryptokey.rb', line 5

def initialize(http, parent, id, info = {})
  @class  = :cryptokeys
  @http   = http
  @parent = parent
  @id     = id
  @info   = info
  @url    = "#{parent.url}/#{@class}/#{id}"
end

Instance Method Details

#change(rrsets) ⇒ Object

Change cryptokey information



17
18
19
# File 'lib/pdns_api/cryptokey.rb', line 17

def change(rrsets)
  @http.put(@url, rrsets)
end