Sha256: d01abc89d063f890846646a11de0e19f5c90bb1e99d26a3ffdf6a8bcf740d0bd
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
module MeducationSDK class Friendship < Loquor::Resource self.path = "/user_friendships" def user @user ||= User.find(user_id) end def friend @friend ||= User.find(friend_id) end end class FriendshipMock < Friendship extend Loquor::ResourceMock self.attributes = { id: 1, user_id: 8, friend_id: 9 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-0.4.1 | lib/meducation_sdk/resources/friendship.rb |
meducation_sdk-0.4.0 | lib/meducation_sdk/resources/friendship.rb |