Class: CpanelRuby::API::Account::RemoveAccount

Inherits:
Request
  • Object
show all
Defined in:
lib/cpanel_ruby/api/account/remove_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ RemoveAccount

Returns a new instance of RemoveAccount.



7
8
9
10
# File 'lib/cpanel_ruby/api/account/remove_account.rb', line 7

def initialize params = {}
  self.user = params[:user]
  self.keepdns = params[:keepdns]
end

Instance Attribute Details

#keepdnsObject

Returns the value of attribute keepdns.



5
6
7
# File 'lib/cpanel_ruby/api/account/remove_account.rb', line 5

def keepdns
  @keepdns
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/cpanel_ruby/api/account/remove_account.rb', line 5

def user
  @user
end

Instance Method Details

#paramObject



12
13
14
15
16
17
# File 'lib/cpanel_ruby/api/account/remove_account.rb', line 12

def param
  {
    user: self.user,
    keepdns: self.keepdns
  }
end