Class: CreditCardToken
- Inherits:
-
Object
- Object
- CreditCardToken
- Defined in:
- app/models/credit_card_token.rb
Instance Attribute Summary collapse
-
#cc_token ⇒ Object
Returns the value of attribute cc_token.
Instance Method Summary collapse
-
#initialize ⇒ CreditCardToken
constructor
A new instance of CreditCardToken.
Constructor Details
#initialize ⇒ CreditCardToken
Returns a new instance of CreditCardToken.
6 7 8 9 |
# File 'app/models/credit_card_token.rb', line 6 def initialize uuid = UUID.new @cc_token = uuid.generate(:compact).upcase end |
Instance Attribute Details
#cc_token ⇒ Object
Returns the value of attribute cc_token.
11 12 13 |
# File 'app/models/credit_card_token.rb', line 11 def cc_token @cc_token end |