Class: Cb::Requests::User::ChangePassword
- Inherits:
-
Base
- Object
- Base
- Cb::Requests::User::ChangePassword
show all
- Defined in:
- lib/cb/requests/user/change_password.rb
Instance Attribute Summary
Attributes inherited from Base
#args
Instance Method Summary
collapse
Methods inherited from Base
#headers, #initialize, #query
Instance Method Details
#body ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/cb/requests/user/change_password.rb', line 16
def body
<<-eos
<Request>
<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>
<ExternalID>#{args[:external_id]}</ExternalID>
<Test>#{test?}</Test>
<OldPassword>#{args[:old_password]}</OldPassword>
<NewPassword>#{args[:new_password]}</NewPassword>
</Request>
eos
end
|
#endpoint_uri ⇒ Object
8
9
10
|
# File 'lib/cb/requests/user/change_password.rb', line 8
def endpoint_uri
Cb.configuration.uri_user_change_password
end
|
#http_method ⇒ Object
12
13
14
|
# File 'lib/cb/requests/user/change_password.rb', line 12
def http_method
:post
end
|