Class: Bluepay::Base

Inherits:
Object
  • Object
show all
Includes:
Parameters, TamperProofSeal
Defined in:
lib/bluepay/base.rb

Direct Known Subclasses

Report, Transaction, TransactionBase

Constant Summary

Constants included from Parameters

Parameters::BOOLEAN_CONVERTER, Parameters::DEFAULT_CONVERTER

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TamperProofSeal

#hash, #tps

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

#requestObject (readonly)

Returns the value of attribute request.



11
12
13
# File 'lib/bluepay/base.rb', line 11

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



11
12
13
# File 'lib/bluepay/base.rb', line 11

def response
  @response
end