Class: IMS::LTI::Models::MembershipService::Membership

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/ims/lti/models/membership_service/membership.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

Constructor Details

#initialize(opts = {}) ⇒ Membership

Returns a new instance of Membership.



7
8
9
10
11
12
# File 'lib/ims/lti/models/membership_service/membership.rb', line 7

def initialize(opts={})
  @id = opts[:id]
  @status = opts[:status]
  @member = opts[:member]
  @role = opts[:role]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#memberObject (readonly)

Returns the value of attribute member.



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

def member
  @member
end

#roleObject (readonly)

Returns the value of attribute role.



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

def role
  @role
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end