Class: PayTrace::API::Request
- Inherits:
-
Object
- Object
- PayTrace::API::Request
- Defined in:
- lib/paytrace/api/request.rb
Constant Summary collapse
- TRANSACTION_METHOD =
"PROCESSTRANX"
Instance Attribute Summary collapse
-
#field_delim ⇒ Object
readonly
Returns the value of attribute field_delim.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#value_delim ⇒ Object
readonly
Returns the value of attribute value_delim.
Instance Method Summary collapse
-
#initialize(transaction: nil) ⇒ Request
constructor
A new instance of Request.
- #to_parms_string ⇒ Object
Constructor Details
#initialize(transaction: nil) ⇒ Request
Returns a new instance of Request.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/paytrace/api/request.rb', line 7 def initialize(transaction: nil) @field_delim = "|" @value_delim = "~" @params= { user_name: PayTrace.configuration.user_name, password: PayTrace.configuration.password, terms: "Y" } add_transaction(transaction) if transaction end |
Instance Attribute Details
#field_delim ⇒ Object (readonly)
Returns the value of attribute field_delim.
5 6 7 |
# File 'lib/paytrace/api/request.rb', line 5 def field_delim @field_delim end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/paytrace/api/request.rb', line 5 def params @params end |
#value_delim ⇒ Object (readonly)
Returns the value of attribute value_delim.
5 6 7 |
# File 'lib/paytrace/api/request.rb', line 5 def value_delim @value_delim end |