Sha256: 1bee73ead4e385cfcb79c58182347d253110dfac4fd0aa4d4f95898646aaf7e4

Contents?: true

Size: 386 Bytes

Versions: 37

Compression:

Stored size: 386 Bytes

Contents

module MeducationSDK
  class GroupMembership < 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

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/group_membership.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/group_membership.rb