Sha256: e8a3669583140d59f08b4c41d555a62241831602ca5d54e02b9674d8919d12ef

Contents?: true

Size: 418 Bytes

Versions: 14

Compression:

Stored size: 418 Bytes

Contents

module MeducationSDK
  class UserConnection < Resource
    self.path = "/user_connections"

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

    def connected_user
      @connected_user ||= User.find(connected_user_id)
    end
  end

  class UserConnectionMock < UserConnection
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 8,
      connected_user_id: 9,
    }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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