Sha256: ba49da955ea25b9394fee7b18c8efba68aa69d4d67dabce589c1b08e17b3680c

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

class TbCommerce::CreditCard

  # NOTE: This is not a real database model
  #
  # Using ActiveModel::Model allows us to treat a ruby object as if it were a model
  # This enables us to plug it into a form_for, run validations, and configure localized
  # strings in en.yml
  #
  include ActiveModel::Model

  attr_accessor :card_number, :card_ccv, :card_expiration, :billing_name, :billing_address, :billing_address_2,
    :billing_city, :billing_state, :billing_postal, :billing_country
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 app/models/tb_commerce/credit_card.rb
tb_commerce-0.0.3 app/models/tb_commerce/credit_card.rb
tb_commerce-0.0.2 app/models/tb_commerce/credit_card.rb