Class: Kloxo::API::Client::ChangePassword

Inherits:
Request
  • Object
show all
Defined in:
lib/kloxo/api/client/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/kloxo/api/client/change_password.rb', line 7

def initialize params = {}
  self.name = params[:name]
  self.new_password = params[:new_password]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/kloxo/api/client/change_password.rb', line 5

def name
  @name
end

#new_passwordObject

Returns the value of attribute new_password.



5
6
7
# File 'lib/kloxo/api/client/change_password.rb', line 5

def new_password
  @new_password
end

Instance Method Details

#paramObject



12
13
14
15
16
17
18
19
20
# File 'lib/kloxo/api/client/change_password.rb', line 12

def param
  {
    "action" => "update",
    "class" => "client",
    "name" => self.name,
    "subaction" => "password",
    "v-password" => self.new_password
  }.to_param
end