Class: ActiveMerchant::Billing::EncryptedNexioCard

Inherits:
CreditCard
  • Object
show all
Defined in:
lib/active_merchant/billing/encrypted_nexio_card.rb

Constant Summary collapse

ALLOWED_CARD_BRANDS =
%w[amex discover jcb mastercard visa].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#brandObject (readonly)

Returns the value of attribute brand.



10
11
12
# File 'lib/active_merchant/billing/encrypted_nexio_card.rb', line 10

def brand
  @brand
end

#encrypted_numberObject

Returns the value of attribute encrypted_number.



8
9
10
# File 'lib/active_merchant/billing/encrypted_nexio_card.rb', line 8

def encrypted_number
  @encrypted_number
end

#one_time_tokenObject

Returns the value of attribute one_time_token.



8
9
10
# File 'lib/active_merchant/billing/encrypted_nexio_card.rb', line 8

def one_time_token
  @one_time_token
end

#own_formObject

Returns the value of attribute own_form.



8
9
10
# File 'lib/active_merchant/billing/encrypted_nexio_card.rb', line 8

def own_form
  @own_form
end

Instance Method Details

#short_yearObject



12
13
14
# File 'lib/active_merchant/billing/encrypted_nexio_card.rb', line 12

def short_year
  year % 100 if year
end