Class: Akatus::Phone

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Phone

Returns a new instance of Phone.



6
7
8
9
10
# File 'lib/akatus/phone.rb', line 6

def initialize(attributes = {})
  attributes.each do |name, value|  
    send("#{name}=", value)  
  end  
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#numberObject

Returns the value of attribute number.



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

def number
  @number
end