Class: Spritpreisrechner::Contact
- Inherits:
-
Object
- Object
- Spritpreisrechner::Contact
- Defined in:
- lib/spritpreisrechner/contact.rb
Instance Attribute Summary collapse
-
#fax ⇒ Object
readonly
Returns the value of attribute fax.
-
#mail ⇒ Object
readonly
Returns the value of attribute mail.
-
#telephone ⇒ Object
readonly
Returns the value of attribute telephone.
-
#website ⇒ Object
readonly
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(contact) ⇒ Contact
constructor
A new instance of Contact.
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
#fax ⇒ Object (readonly)
Returns the value of attribute fax.
3 4 5 |
# File 'lib/spritpreisrechner/contact.rb', line 3 def fax @fax end |
#mail ⇒ Object (readonly)
Returns the value of attribute mail.
3 4 5 |
# File 'lib/spritpreisrechner/contact.rb', line 3 def mail @mail end |
#telephone ⇒ Object (readonly)
Returns the value of attribute telephone.
3 4 5 |
# File 'lib/spritpreisrechner/contact.rb', line 3 def telephone @telephone end |
#website ⇒ Object (readonly)
Returns the value of attribute website.
3 4 5 |
# File 'lib/spritpreisrechner/contact.rb', line 3 def website @website end |