Class: IMS::LTI::Models::MembershipService::Context

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

Instance Attribute Summary collapse

Attributes inherited from Organization

#id, #membership, #name, #type

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

Constructor Details

#initialize(opts = {}) ⇒ Context

Returns a new instance of Context.



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

def initialize(opts={})
  super(opts)
  @type = 'Context'
  @context_id = opts[:context_id]
end

Instance Attribute Details

#context_idObject (readonly)

Returns the value of attribute context_id.



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

def context_id
  @context_id
end