Class: GooPR::AccountActions::ChangePassword
- Defined in:
- lib/account_actions.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ChangePassword
constructor
A new instance of ChangePassword.
- #run ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ ChangePassword
Returns a new instance of ChangePassword.
8 9 10 11 |
# File 'lib/account_actions.rb', line 8 def initialize(params = {}) self.params = params self.params.merge!(:url => "https://apps-apis.google.com/a/feeds/#{params[:domain]}/user/2.0/#{params[:user_name]}") end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/account_actions.rb', line 13 def run body = <<-EOF <?xml version="1.0" encoding="UTF-8"?> <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006"> <atom:category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/apps/2006#user"/> <apps:login password="testtest"/> </atom:entry> EOF self.goopr.class.put(self.params[:url], :body => body ) end |