Class: VSafe::PaymentStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/vsafe/payment_status.rb', line 9

def code
  @code
end