1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/storm_on_demand/models/dns/domain.rb

34 lines
677 B
Ruby

require 'fog/core/model'
module Fog
module DNS
class StormOnDemand
class Domain < Fog::Model
identity :domain
attribute :admin_handle
attribute :bill_handle
attribute :created
attribute :expire
attribute :ip
attribute :registrar
attribute :renewal_max_years
attribute :renewal_status
attribute :tech_handle
attribute :updated
def initialize(attributes={})
super
end
def renew(years)
requires :identity
service.renew_domain(:domain => identity, :years => years)
true
end
end
end
end
end