Class: IMS::LTI::Models::MembershipService::Organization
- Inherits:
-
Object
- Object
- IMS::LTI::Models::MembershipService::Organization
- Includes:
- Serializable
- Defined in:
- lib/ims/lti/models/membership_service/organization.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#membership ⇒ Object
readonly
Returns the value of attribute membership.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Organization
constructor
A new instance of Organization.
Methods included from Serializable
Constructor Details
#initialize(opts = {}) ⇒ Organization
Returns a new instance of Organization.
7 8 9 10 11 12 |
# File 'lib/ims/lti/models/membership_service/organization.rb', line 7 def initialize(opts={}) @id = opts[:id] @membership = opts[:membership] @name = opts[:name] @type = 'Organization' end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/ims/lti/models/membership_service/organization.rb', line 5 def id @id end |
#membership ⇒ Object (readonly)
Returns the value of attribute membership.
5 6 7 |
# File 'lib/ims/lti/models/membership_service/organization.rb', line 5 def membership @membership end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/ims/lti/models/membership_service/organization.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/ims/lti/models/membership_service/organization.rb', line 5 def type @type end |