lib/discountnetwork/account.rb in discountnetwork-0.1.2 vs lib/discountnetwork/account.rb in discountnetwork-0.1.3
- old
+ new
@@ -5,9 +5,13 @@
if auth_token_exists?
DiscountNetwork.get_resource("account").user
end
end
+ def create(attributes)
+ DiscountNetwork.post_resource("account", subscriber: attributes)
+ end
+
def update(attributes)
if auth_token_exists?
DiscountNetwork.put_resource("account", subscriber: attributes)
end
end