Sha256: 39d6fb54cff1110ceb03edec96eac88a1748813af929505ad52c545af97ccd3d

Contents?: true

Size: 491 Bytes

Versions: 12

Compression:

Stored size: 491 Bytes

Contents

class Dorsale::CustomerVault::Individual < Dorsale::CustomerVault::Person
  serialize      :data,  Dorsale::CustomerVault::IndividualData
  def_delegators :data, *Dorsale::CustomerVault::IndividualData.methods_to_delegate

  validates :first_name, presence: true
  validates :last_name,  presence: true

  def name
    [self.last_name, self.first_name].join(", ")
  end

  private def corporation_name;  raise NoMethodError; end
  private def corporation_name=; raise NoMethodError; end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dorsale-3.5.0 app/models/dorsale/customer_vault/individual.rb
dorsale-3.4.0 app/models/dorsale/customer_vault/individual.rb
dorsale-3.3.0 app/models/dorsale/customer_vault/individual.rb
dorsale-3.2.0 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.7 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.6 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.5 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.4 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.3 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.2 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.1 app/models/dorsale/customer_vault/individual.rb
dorsale-3.1.0 app/models/dorsale/customer_vault/individual.rb