Class: ActiveMerchant::Shipping::Contact
- Defined in:
- lib/active_shipping/shipping/contact.rb
Instance Attribute Summary collapse
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#fax_number ⇒ Object
Returns the value of attribute fax_number.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(attrs = {}) ⇒ Contact
Returns a new instance of Contact.
11 12 13 14 15 |
# File 'lib/active_shipping/shipping/contact.rb', line 11 def initialize(attrs = {}) attrs.each do |key, value| self.send("#{key}=", value) if self.respond_to?("#{key}=") end end |
Instance Attribute Details
#company_name ⇒ Object
Returns the value of attribute company_name.
6 7 8 |
# File 'lib/active_shipping/shipping/contact.rb', line 6 def company_name @company_name end |
#email_address ⇒ Object
Returns the value of attribute email_address.
9 10 11 |
# File 'lib/active_shipping/shipping/contact.rb', line 9 def email_address @email_address end |
#fax_number ⇒ Object
Returns the value of attribute fax_number.
8 9 10 |
# File 'lib/active_shipping/shipping/contact.rb', line 8 def fax_number @fax_number end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/active_shipping/shipping/contact.rb', line 4 def name @name end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
7 8 9 |
# File 'lib/active_shipping/shipping/contact.rb', line 7 def phone_number @phone_number end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/active_shipping/shipping/contact.rb', line 5 def title @title end |