Class: FreightKit::Contact
Overview
Contact is the abstract base class for all contacts.
Instance Attribute Summary collapse
-
#company_name ⇒ Object
(also: #company)
Company name.
-
#department ⇒ Object
Returns the value of attribute department.
-
#department_name ⇒ Object
readonly
Department name (like “Shipping Dept”).
-
#email ⇒ Object
Email.
-
#fax ⇒ Object
E164 formatted fax number.
-
#name ⇒ Object
Name of person.
-
#phone ⇒ Object
E164 formatted phone number.
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from FreightKit::Model
Instance Attribute Details
#company_name ⇒ Object Also known as: company
Company name.
12 13 14 15 16 |
# File 'lib/freight_kit/contact.rb', line 12 class Contact < Model attr_accessor :company_name, :department, :email, :fax, :name, :phone alias_method :company, :company_name end |
#department ⇒ Object
Returns the value of attribute department.
13 14 15 |
# File 'lib/freight_kit/contact.rb', line 13 def department @department end |
#department_name ⇒ Object (readonly)
Department name (like “Shipping Dept”).
12 13 14 15 16 |
# File 'lib/freight_kit/contact.rb', line 12 class Contact < Model attr_accessor :company_name, :department, :email, :fax, :name, :phone alias_method :company, :company_name end |
#email ⇒ Object
Email.
12 13 14 15 16 |
# File 'lib/freight_kit/contact.rb', line 12 class Contact < Model attr_accessor :company_name, :department, :email, :fax, :name, :phone alias_method :company, :company_name end |
#fax ⇒ Object
E164 formatted fax number.
12 13 14 15 16 |
# File 'lib/freight_kit/contact.rb', line 12 class Contact < Model attr_accessor :company_name, :department, :email, :fax, :name, :phone alias_method :company, :company_name end |