Class: IMS::LTI::Models::MembershipService::Person

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

Direct Known Subclasses

LISPerson

Instance Attribute Summary collapse

Attributes inherited from Agent

#id

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

Constructor Details

#initialize(opts = {}) ⇒ Person

Returns a new instance of Person.



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

def initialize(opts={})
  super(opts)
  @family_name = opts[:family_name]
  @name = opts[:name]
  @img = opts[:img]
  @given_name = opts[:given_name]
end

Instance Attribute Details

#family_nameObject (readonly)

Returns the value of attribute family_name.



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

def family_name
  @family_name
end

#given_nameObject (readonly)

Returns the value of attribute given_name.



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

def given_name
  @given_name
end

#imgObject (readonly)

Returns the value of attribute img.



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

def img
  @img
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end