Class: Kloxo::API::Client::ChangePassword
- Defined in:
- lib/kloxo/api/client/change_password.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#new_password ⇒ Object
Returns the value of attribute new_password.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ChangePassword
constructor
A new instance of ChangePassword.
- #param ⇒ Object
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
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/kloxo/api/client/change_password.rb', line 5 def name @name end |
#new_password ⇒ Object
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
#param ⇒ Object
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 |