Sha256: 174be4b969c8a1b7c0571701799372c58e6118d1c4e0e7bb25df3beac03eba58

Contents?: true

Size: 412 Bytes

Versions: 14

Compression:

Stored size: 412 Bytes

Contents

module MeducationSDK
  class UserFollow < Resource
    self.path = "/user_follows"

    def user
      @user ||= User.find(user_id)
    end

    def followee
      @followee ||= User.find(followee_id)
    end
  end

  class UserFollowMock < UserFollow
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 8,
      followee_id: 9,
      accept_code: "asdsad21312e"
    }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/user_follow.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/user_follow.rb