lib/mymoip/credit_card.rb in mymoip-0.2.4 vs lib/mymoip/credit_card.rb in mymoip-0.2.5
- old
+ new
@@ -1,9 +1,13 @@
module MyMoip
class CreditCard
attr_accessor :logo, :card_number, :expiration_date, :security_code,
:owner_name, :owner_birthday, :owner_phone, :owner_rg
+ AVAILABLE_LOGOS = [
+ :american_express, :diners, :hipercard, :mastercard, :visa
+ ]
+
def initialize(params)
@logo = params[:logo] if params.has_key? :logo
@card_number = params[:card_number] if params.has_key? :card_number
@expiration_date = params[:expiration_date] if params.has_key? :expiration_date
@security_code = params[:security_code] if params.has_key? :security_code