Class: TestObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(p1, p2, p3) ⇒ TestObject

Returns a new instance of TestObject.



7
8
9
10
11
# File 'lib/test.rb', line 7

def initialize(p1,p2,p3)
  @p1 = p1
  @p2 = p2
  @p3 = p3
end

Instance Attribute Details

#p1Object (readonly)

Returns the value of attribute p1.



6
7
8
# File 'lib/test.rb', line 6

def p1
  @p1
end

#p2Object (readonly)

Returns the value of attribute p2.



6
7
8
# File 'lib/test.rb', line 6

def p2
  @p2
end

#p3Object (readonly)

Returns the value of attribute p3.



6
7
8
# File 'lib/test.rb', line 6

def p3
  @p3
end