Class: CpanelRuby::API::Account::SuspendAccount
- Defined in:
- lib/cpanel_ruby/api/account/suspend_account.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SuspendAccount
constructor
A new instance of SuspendAccount.
- #param ⇒ Object
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
#reason ⇒ Object
Returns the value of attribute reason.
5 6 7 |
# File 'lib/cpanel_ruby/api/account/suspend_account.rb', line 5 def reason @reason end |
#user ⇒ Object
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
#param ⇒ Object
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 |