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 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:apps=\"http://schemas.google.com/apps/2006\">\n <atom:category scheme=\"http://schemas.google.com/g/2005#kind\"\n term=\"http://schemas.google.com/apps/2006#user\"/>\n <apps:login password=\"testtest\"/>\n</atom:entry>\n EOF\n\n self.goopr.class.put(self.params[:url], :body => body )\nend\n" |