Class: IMS::LTI::Models::MembershipService::LISMembershipContainer

Inherits:
Container
  • Object
show all
Defined in:
lib/ims/lti/models/membership_service/lis_membership_container.rb

Instance Attribute Summary collapse

Attributes inherited from Container

#membership_predicate, #membership_subject

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

Constructor Details

#initialize(opts = {}) ⇒ LISMembershipContainer

Returns a new instance of LISMembershipContainer.



5
6
7
8
9
10
11
# File 'lib/ims/lti/models/membership_service/lis_membership_container.rb', line 5

def initialize(opts={})
  super(opts)
  @id = opts[:id]
  @context = 'http://purl.imsglobal.org/ctx/lis/v2/MembershipContainer'
  @type = 'LISMembershipContainer'
  @membership_predicate = 'http://www.w3.org/ns/org#membership'
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/ims/lti/models/membership_service/lis_membership_container.rb', line 3

def context
  @context
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/ims/lti/models/membership_service/lis_membership_container.rb', line 3

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/ims/lti/models/membership_service/lis_membership_container.rb', line 3

def type
  @type
end