Class: Fog::DNS::StormOnDemand::Domain
- Defined in:
- lib/fog/storm_on_demand/models/dns/domain.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Domain
constructor
A new instance of Domain.
- #renew(years) ⇒ Object
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ Domain
Returns a new instance of Domain.
20 21 22 |
# File 'lib/fog/storm_on_demand/models/dns/domain.rb', line 20 def initialize(attributes={}) super end |
Instance Method Details
#renew(years) ⇒ Object
24 25 26 27 28 |
# File 'lib/fog/storm_on_demand/models/dns/domain.rb', line 24 def renew(years) requires :identity service.renew_domain(:domain => identity, :years => years) true end |