Class: Extr::Transaction
- Inherits:
-
Object
- Object
- Extr::Transaction
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/extr/transaction.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#tid ⇒ Object
readonly
Returns the value of attribute tid.
-
#upload ⇒ Object
readonly
Returns the value of attribute upload.
Instance Method Summary collapse
-
#initialize(request, action, method, tid, data, upload) ⇒ Transaction
constructor
A new instance of Transaction.
- #response ⇒ Object
- #uploadable? ⇒ Boolean
Constructor Details
#initialize(request, action, method, tid, data, upload) ⇒ Transaction
Returns a new instance of Transaction.
13 14 15 16 17 18 19 20 |
# File 'lib/extr/transaction.rb', line 13 def initialize(request, action, method, tid, data, upload) @request = request @action = action @method = method @data = data @tid = tid @upload = upload end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def action @action end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def data @data end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def method @method end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def request @request end |
#tid ⇒ Object (readonly)
Returns the value of attribute tid.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def tid @tid end |
#upload ⇒ Object (readonly)
Returns the value of attribute upload.
11 12 13 |
# File 'lib/extr/transaction.rb', line 11 def upload @upload end |
Instance Method Details
#response ⇒ Object
27 28 29 |
# File 'lib/extr/transaction.rb', line 27 def response invoke_controller_method end |
#uploadable? ⇒ Boolean
23 24 25 |
# File 'lib/extr/transaction.rb', line 23 def uploadable? @upload ? true : false end |