lib/inkling_api.rb in inkling_api-0.0.5 vs lib/inkling_api.rb in inkling_api-0.0.6
- old
+ new
@@ -172,9 +172,13 @@
def membership(member_id, *args)
get("memberships/#{member_id}.xml", *args)
end
+ def me # Get's membership of current logged in user
+ get("memberships/me.xml")
+ end
+
def create_membership(login, email, password, first_name, last_name)
membership_data = { :'login' => login,
:'password' => password,
:'email' => email,
:'first-name' => first_name,