Sha256: b30856c5f44da04759799d09c78c1a21998379925c3f86b01a34dbdc13118c80
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
# encoding: utf-8 module Zuora module Models class Contact include ActiveModel::Model ATTRIBUTES = :address_1, :address_2, :city, :country, :county, :fax, :first_name, :home_phone, :last_name, :mobile_phone, :nickname, :other_phone, :other_phone_type, :personal_email, :zip_code, :state, :tax_region, :work_email, :work_phone attr_accessor(*ATTRIBUTES) def attributes ATTRIBUTES end validates :first_name, :last_name, :country, presence: true validates :first_name, :last_name, length: { maximum: 100 } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zuora-ruby-0.1.0 | lib/zuora/models/contact.rb |