Class: IMS::LTI::Models::MembershipService::Person
- Defined in:
- lib/ims/lti/models/membership_service/person.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#family_name ⇒ Object
readonly
Returns the value of attribute family_name.
-
#given_name ⇒ Object
readonly
Returns the value of attribute given_name.
-
#img ⇒ Object
readonly
Returns the value of attribute img.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Agent
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Person
constructor
A new instance of Person.
Methods included from Serializable
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_name ⇒ Object (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_name ⇒ Object (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 |
#img ⇒ Object (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 |
#name ⇒ Object (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 |