Sha256: a59f50ee58f1a4ce9a15c2e9936fc65deddf52305ca6b3b23cfbf14279ab98b6

Contents?: true

Size: 403 Bytes

Versions: 23

Compression:

Stored size: 403 Bytes

Contents

module MeducationSDK
  class Friendship < Resource
    self.path = "/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,
      accept_code: "asdsad21312e"
    }
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
meducation_sdk-1.5.1 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/friendship.rb