Class: LearnSprout::Phone

Inherits:
Object
  • Object
show all
Defined in:
lib/learnsprout/phone.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#faxObject

Returns the value of attribute fax.



4
5
6
# File 'lib/learnsprout/phone.rb', line 4

def fax
  @fax
end

#homeObject

Returns the value of attribute home.



4
5
6
# File 'lib/learnsprout/phone.rb', line 4

def home
  @home
end

#mainObject

Returns the value of attribute main.



4
5
6
# File 'lib/learnsprout/phone.rb', line 4

def main
  @main
end