Class: T1000::Transaction
- Inherits:
-
Object
- Object
- T1000::Transaction
- Defined in:
- lib/t-1000/transaction.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(request, response) ⇒ Transaction
Returns a new instance of Transaction.
5 6 7 8 9 |
# File 'lib/t-1000/transaction.rb', line 5 def initialize(request, response) @request = request @response = response @time = Time.now end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
3 4 5 |
# File 'lib/t-1000/transaction.rb', line 3 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/t-1000/transaction.rb', line 3 def response @response end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/t-1000/transaction.rb', line 3 def time @time end |