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.6.16 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.10 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/friendship.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/friendship.rb