Class: TestObject
- Inherits:
-
Object
- Object
- TestObject
- Defined in:
- lib/lti2_commons/test/test_substitution_support.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize ⇒ TestObject
constructor
A new instance of TestObject.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ TestObject
Returns a new instance of TestObject.
11 12 13 14 15 |
# File 'lib/lti2_commons/test/test_substitution_support.rb', line 11 def initialize @user_id = 'jt' @name = "john.thomas" @code = @name.reverse end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/lti2_commons/test/test_substitution_support.rb', line 9 def name @name end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/lti2_commons/test/test_substitution_support.rb', line 9 def user_id @user_id end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/lti2_commons/test/test_substitution_support.rb', line 17 def to_s @user_id end |