Class: LearnSprout::Phone
- Inherits:
-
Object
- Object
- LearnSprout::Phone
- Defined in:
- lib/learnsprout/phone.rb
Instance Attribute Summary collapse
-
#fax ⇒ Object
Returns the value of attribute fax.
-
#home ⇒ Object
Returns the value of attribute home.
-
#main ⇒ Object
Returns the value of attribute main.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Phone
constructor
A new instance of Phone.
Constructor Details
#initialize(attrs = {}) ⇒ Phone
Returns a new instance of Phone.
8 9 10 11 12 |
# File 'lib/learnsprout/phone.rb', line 8 def initialize(attrs={}) @fax = attrs["fax"] @main = attrs["main"] @home = attrs["home"] end |
Instance Attribute Details
#fax ⇒ Object
Returns the value of attribute fax.
4 5 6 |
# File 'lib/learnsprout/phone.rb', line 4 def fax @fax end |
#home ⇒ Object
Returns the value of attribute home.
4 5 6 |
# File 'lib/learnsprout/phone.rb', line 4 def home @home end |
#main ⇒ Object
Returns the value of attribute main.
4 5 6 |
# File 'lib/learnsprout/phone.rb', line 4 def main @main end |