Class: Sunzi::Vps::DNS::Base
- Inherits:
-
Object
- Object
- Sunzi::Vps::DNS::Base
- Includes:
- Actions::Delegate
- Defined in:
- lib/sunzi/vps/dns/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(api) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/sunzi/vps/dns/base.rb', line 11 def initialize(api) @api = api @zone = api.config.fqdn.zone end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
9 10 11 |
# File 'lib/sunzi/vps/dns/base.rb', line 9 def api @api end |
Instance Method Details
#client ⇒ Object
16 17 18 |
# File 'lib/sunzi/vps/dns/base.rb', line 16 def client api.client end |