Class: PDNS::Override
Overview
Override for a server.
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
The ID of the override.
Attributes inherited from API
Instance Method Summary collapse
-
#initialize(http, parent, id, info = {}) ⇒ Override
constructor
Creates a configuration option object.
Methods inherited from API
#change, #create, #delete, #ensure_array, #get, #info
Constructor Details
#initialize(http, parent, id, info = {}) ⇒ Override
Creates a configuration option object.
36 37 38 39 40 41 42 43 |
# 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 |
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns the ID of the override.
26 27 28 |
# File 'lib/pdns_api/override.rb', line 26 def id @id end |