Sha256: 428374944b91b37f5bd4fb9e77385a27ac8bd585a69b28b95a5befe29b9624a2

Contents?: true

Size: 394 Bytes

Versions: 26

Compression:

Stored size: 394 Bytes

Contents

module MeducationSDK
  class GroupMembership < Loquor::Resource
    self.path = "/group_memberships"

    def group
      @group ||= Group.find(group_id)
    end

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

  class GroupMembershipMock < GroupMembership
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      group_id: 5,
      user_id: 8
    }
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
meducation_sdk-1.4.3 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.4.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.4.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.4.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.3.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.6 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.5 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.4 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.3 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.2.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.1.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.1.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.1.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.0.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-0.10.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-0.10.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-0.9.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-0.8.0 lib/meducation_sdk/resources/group_membership.rb