Class: FreightKit::Contact

Inherits:
Model
  • Object
show all
Defined in:
lib/freight_kit/contact.rb

Overview

Contact is the abstract base class for all contacts.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#attributes, #initialize

Constructor Details

This class inherits a constructor from FreightKit::Model

Instance Attribute Details

#company_nameObject 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

#departmentObject

Returns the value of attribute department.



13
14
15
# File 'lib/freight_kit/contact.rb', line 13

def department
  @department
end

#department_nameObject (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

#emailObject

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

#faxObject

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

#nameObject

Name of person.



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

#phoneObject

E164 formatted phone 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