lib/sorenson/services/account.rb in 360_services-1.0.7 vs lib/sorenson/services/account.rb in 360_services-1.0.8
- old
+ new
@@ -36,12 +36,13 @@
def get_subaccounts
Base.get_from("/subaccounts")
end
- def create_subaccount(username, email, password)
- Base.post_to("/subaccounts", :subaccount => {:username => username, :email => email, :password => password})
+ def create_subaccount(username_email, password)
+ Base.post_to("/subaccounts", :subaccount => {:username => username_email, :email => username_email, :password => password})
end
+
def initialize(data)
self.username = data['username']
self.status = data['status']
self.customer_id = data['id']
\ No newline at end of file