Class: Yp::Base
- Inherits:
-
Object
- Object
- Yp::Base
- Defined in:
- lib/base.rb
Constant Summary collapse
- TYPE =
{ ecom: 1, moto: 2, ca: 9 }.freeze
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(signature_key, type: :ecom, **params) ⇒ Base
constructor
A new instance of Base.
- #send! ⇒ Object
Constructor Details
#initialize(signature_key, type: :ecom, **params) ⇒ Base
Returns a new instance of Base.
15 16 17 18 |
# File 'lib/base.rb', line 15 def initialize(signature_key, type: :ecom, **params) @params = transaction_params(params, type) @signature_key = signature_key end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
13 14 15 |
# File 'lib/base.rb', line 13 def params @params end |