Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit d413ecc

Browse files
author
Andrej Jančič
committed
contents and bubled contents to user
1 parent 91d1657 commit d413ecc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/creatubbles/user.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@ class Creatubbles::User < Creatubbles::BaseObject
3636
define_relationships %w[school custom_style]
3737

3838
def creators
39-
res = @connection.get("users/#{id}/creators")
40-
Creatubbles.instantiate_objects_from_response(res, @connection)
39+
init_objects @connection.get("users/#{id}/creators")
4140
end
4241

4342
def creations
44-
res = @connection.get("users/#{id}/creations")
45-
Creatubbles.instantiate_objects_from_response(res, @connection)
43+
init_objects @connection.get("users/#{id}/creations")
44+
end
45+
46+
def contents
47+
init_objects @connection.get("users/#{id}/contents")
48+
end
49+
50+
def bubbled_contents
51+
init_objects @connection.get("users/#{id}/bubbled_contents")
4652
end
4753
end

0 commit comments

Comments
 (0)