class App42::Shopping::PaymentStatus
Constants
- AUTHORIZED
- DECLINED
- PENDING
Public Instance Methods
enum(string)
click to toggle source
Sets the value of the PaymentStatus
. DECLINED
or AUTHORIZED
or PENDING
.
@param string
- the string of PaymentStatus either DECLINED or AUTHORIZED or PENDING.
# File lib/shopping/PaymentStatus.rb, line 34 def enum(string) return PaymentStatus.const_get(string) end
isAvailable(string)
click to toggle source
Returns the value of the PaymentStatus
. DECLINED
or AUTHORIZED
or PENDING
.
@return the value of PaymentStatus
.
# File lib/shopping/PaymentStatus.rb, line 46 def isAvailable(string) if(string == "DECLINED") return "DECLINED" elsif(string == "AUTHORIZED") return "AUTHORIZED" elsif(string == "PENDING") return "PENDING"; else return nil end end