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

Commit 08a18cc

Browse files
author
Andrej Jančič
committed
init objects to base object too
1 parent 1f7d19d commit 08a18cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/creatubbles/base_object.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ def reload
6565
@data = @connection.get("#{self.class.type_name}/#{id}").parsed['data']
6666
self
6767
end
68+
69+
def init_objects response
70+
Creatubbles.instantiate_objects_from_response(response, @connection)
71+
end
6872
end

0 commit comments

Comments
 (0)