lib/bcx/resources/person.rb in bcx-0.0.2 vs lib/bcx/resources/person.rb in bcx-0.1.0
- old
+ new
@@ -1,13 +1,36 @@
+# `Bcx::Resources::Person`
+# Provides access to people resource
+#
+# #### Get all people on the account
+# `GET /people.json`
+#
+# client.people!
+#
+# #### Get a person
+# `GET /people/123.json`
+#
+# client.people!(123)
+#
+# #### Get the current person
+# `GET /people/me.json`
+#
+# client.people.me!
+#
+# #### Get assigned todos for a person
+# `GET /people/1/assigned_todos.json`
+#
+# client.people(1).assigned_todos
+#
+# #### Delete a person
+# `DELETE /people/123.json`
+#
+# client.people(123).delete!
+#
module Bcx
module Resources
-
- # Get todolists with assigned todos for a person
- # GET /people/1/assigned_todos.json
- #
- # client.people(1).assigned_todos
- #
class Person < Rapidash::Base
-
+ url :people
+ collection :me
end
end
end