Class: IMS::LTI::Models::MembershipService::Organization

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

Direct Known Subclasses

Context

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

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

#idObject (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

#membershipObject (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

#nameObject (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

#typeObject (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