Class: CpanelRuby::API::Account::ChangePassword

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ChangePassword

Returns a new instance of ChangePassword.



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

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

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end

Instance Method Details

#paramObject



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

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