Class: Bluepay::Base
- Inherits:
-
Object
- Object
- Bluepay::Base
- Includes:
- Parameters, TamperProofSeal
- Defined in:
- lib/bluepay/base.rb
Direct Known Subclasses
Constant Summary
Constants included from Parameters
Parameters::BOOLEAN_CONVERTER, Parameters::DEFAULT_CONVERTER
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from TamperProofSeal
Methods included from Parameters
#bluepay_params, #converted_params, included, #params
Constructor Details
#initialize(params = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 17 18 19 |
# File 'lib/bluepay/base.rb', line 13 def initialize(params={}) self.params = params self.params[:mode] ||= Bluepay.mode.to_s.upcase self.params[:tps_hash_type] ||= Bluepay.hash_type self.params[:responseversion] ||= Bluepay.response_version end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/bluepay/base.rb', line 11 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/bluepay/base.rb', line 11 def response @response end |