Class: ActiveMerchant::Shipping::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/active_shipping/shipping/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_addressObject

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_numberObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/active_shipping/shipping/contact.rb', line 4

def name
  @name
end

#phone_numberObject

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

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/active_shipping/shipping/contact.rb', line 5

def title
  @title
end