Class: Omniship::Contact

Inherits:
Object show all
Defined in:
lib/omniship/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Contact

Returns a new instance of Contact.



11
12
13
14
15
16
17
# File 'lib/omniship/contact.rb', line 11

def initialize(options={})
  @name = options[:name]
@attention = options[:attention]
			@phone = options[:phone]
			@fax = options[:fax]
			@email = options[:email]
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



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

def 
  @account
end

#attentionObject (readonly)

Returns the value of attribute attention.



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

def attention
  @attention
end

#emailObject (readonly)

Returns the value of attribute email.



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

def email
  @email
end

#faxObject (readonly)

Returns the value of attribute fax.



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

def fax
  @fax
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#phoneObject (readonly)

Returns the value of attribute phone.



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

def phone
  @phone
end