Class: IMS::LTI::Models::MembershipService::Membership
- Inherits:
-
Object
- Object
- IMS::LTI::Models::MembershipService::Membership
- Includes:
- Serializable
- Defined in:
- lib/ims/lti/models/membership_service/membership.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#member ⇒ Object
readonly
Returns the value of attribute member.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Membership
constructor
A new instance of Membership.
Methods included from Serializable
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
#id ⇒ Object (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 |
#member ⇒ Object (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 |
#role ⇒ Object (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 |
#status ⇒ Object (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 |