Class: Cb::Criteria::User::ChangePassword
- Inherits:
-
Object
- Object
- Cb::Criteria::User::ChangePassword
- Defined in:
- lib/cb/criteria/user/change_password.rb
Instance Attribute Summary collapse
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#new_password ⇒ Object
Returns the value of attribute new_password.
-
#old_password ⇒ Object
Returns the value of attribute old_password.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ ChangePassword
constructor
A new instance of ChangePassword.
- #to_xml ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ ChangePassword
Returns a new instance of ChangePassword.
18 19 20 21 22 23 |
# File 'lib/cb/criteria/user/change_password.rb', line 18 def initialize(args = {}) @external_id = args[:external_id] || '' @old_password = args[:old_password] || '' @new_password = args[:new_password] || '' @test = args[:test] || 'false' end |
Instance Attribute Details
#external_id ⇒ Object
Returns the value of attribute external_id.
17 18 19 |
# File 'lib/cb/criteria/user/change_password.rb', line 17 def external_id @external_id end |
#new_password ⇒ Object
Returns the value of attribute new_password.
17 18 19 |
# File 'lib/cb/criteria/user/change_password.rb', line 17 def new_password @new_password end |
#old_password ⇒ Object
Returns the value of attribute old_password.
17 18 19 |
# File 'lib/cb/criteria/user/change_password.rb', line 17 def old_password @old_password end |
#test ⇒ Object
Returns the value of attribute test.
17 18 19 |
# File 'lib/cb/criteria/user/change_password.rb', line 17 def test @test end |
Instance Method Details
#to_xml ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cb/criteria/user/change_password.rb', line 25 def to_xml Nokogiri::XML::Builder.new do |xml| xml.Request do xml.DeveloperKey Cb.configuration.dev_key xml.ExternalID external_id xml.OldPassword old_password xml.NewPassword new_password xml.Test test end end.to_xml end |