Class: Akatus::Phone
- Inherits:
-
Object
- Object
- Akatus::Phone
- Defined in:
- lib/akatus/phone.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Phone
constructor
A new instance of Phone.
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
#kind ⇒ Object
Returns the value of attribute kind.
4 5 6 |
# File 'lib/akatus/phone.rb', line 4 def kind @kind end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/akatus/phone.rb', line 4 def number @number end |