education/classroom

View on GitHub
lib/github_classroom/lti/models/membership_extension/membership.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# rubocop:disable ClassAndModuleChildren
module GitHubClassroom::LTI::Models::MembershipExtension
  class Membership < IMS::LTI::Models::LTIModel
    add_attribute :member, relation: "GitHubClassroom::LTI::Models::MembershipExtension::Member"

    def members
      [*@member]
    end
  end
end
# rubocop:enable ClassAndModuleChildren