Class: VSafe::PaymentStatus
- Inherits:
-
Object
- Object
- VSafe::PaymentStatus
- Defined in:
- lib/vsafe/payment_status.rb
Constant Summary collapse
- BANK_DENIED =
1
- VSAFE_PENDED =
2
- VSAFE_DENIED =
3
- AUTHORIZED =
5
- SUCCESSFUL =
10
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ PaymentStatus
constructor
A new instance of PaymentStatus.
Constructor Details
#initialize(code) ⇒ PaymentStatus
Returns a new instance of PaymentStatus.
11 12 13 |
# File 'lib/vsafe/payment_status.rb', line 11 def initialize(code) @code = code.to_i end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/vsafe/payment_status.rb', line 9 def code @code end |