Class: CpanelRuby::API::Account::SuspendAccount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ SuspendAccount

Returns a new instance of SuspendAccount.



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

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

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



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

def reason
  @reason
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end

Instance Method Details

#paramObject



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

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