Class: Spritpreisrechner::Contact

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contact) ⇒ Contact

Returns a new instance of Contact.



5
6
7
8
9
10
# File 'lib/spritpreisrechner/contact.rb', line 5

def initialize(contact)
  @telephone = contact[:contact]
  @website = contact[:website]
  @fax = contact[:fax]
  @mail = contact[:mail]
end

Instance Attribute Details

#faxObject (readonly)

Returns the value of attribute fax.



3
4
5
# File 'lib/spritpreisrechner/contact.rb', line 3

def fax
  @fax
end

#mailObject (readonly)

Returns the value of attribute mail.



3
4
5
# File 'lib/spritpreisrechner/contact.rb', line 3

def mail
  @mail
end

#telephoneObject (readonly)

Returns the value of attribute telephone.



3
4
5
# File 'lib/spritpreisrechner/contact.rb', line 3

def telephone
  @telephone
end

#websiteObject (readonly)

Returns the value of attribute website.



3
4
5
# File 'lib/spritpreisrechner/contact.rb', line 3

def website
  @website
end