Class: T1000::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/t-1000/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (readonly)

Returns the value of attribute request.



3
4
5
# File 'lib/t-1000/transaction.rb', line 3

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/t-1000/transaction.rb', line 3

def response
  @response
end

#timeObject (readonly)

Returns the value of attribute time.



3
4
5
# File 'lib/t-1000/transaction.rb', line 3

def time
  @time
end