Class: Dyn::Traffic::Base
- Inherits:
-
Object
- Object
- Dyn::Traffic::Base
- Defined in:
- lib/dyn/traffic/base.rb
Instance Attribute Summary collapse
-
#zone ⇒ Object
Returns the value of attribute zone.
Instance Method Summary collapse
-
#freeze ⇒ Hash
Freeze the zone.
-
#publish ⇒ Hash
Publish any pending changes to the zone - required to make any alterations permanent.
-
#thaw ⇒ Hash
Thaw the zone.
Instance Attribute Details
#zone ⇒ Object
Returns the value of attribute zone.
24 25 26 |
# File 'lib/dyn/traffic/base.rb', line 24 def zone @zone end |
Instance Method Details
#freeze ⇒ Hash
Freeze the zone.
See: manage.dynect.net/help/docs/api2/rest/resources/Zone.html
42 43 44 |
# File 'lib/dyn/traffic/base.rb', line 42 def freeze @dyn.put("Zone/#{@zone}", { "freeze" => true }) end |
#publish ⇒ Hash
Publish any pending changes to the zone - required to make any alterations permanent.
See: manage.dynect.net/help/docs/api2/rest/resources/Zone.html
32 33 34 |
# File 'lib/dyn/traffic/base.rb', line 32 def publish @dyn.put("Zone/#{@zone}", { "publish" => true }) end |
#thaw ⇒ Hash
Thaw the zone.
See: manage.dynect.net/help/docs/api2/rest/resources/Zone.html
52 53 54 |
# File 'lib/dyn/traffic/base.rb', line 52 def thaw @dyn.put("Zone/#{@zone}", { "thaw" => true }) end |