Class: TestObject

Inherits:
Object
  • Object
show all
Defined in:
lib/lti2_commons/test/test_substitution_support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestObject

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

#nameObject

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_idObject

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_sObject



17
18
19
# File 'lib/lti2_commons/test/test_substitution_support.rb', line 17

def to_s
  @user_id
end