Class: LastResort::Contact
- Inherits:
-
Object
- Object
- LastResort::Contact
- Defined in:
- lib/last-resort/twilio.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(name = "", number = "") ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(name = "", number = "") ⇒ Contact
Returns a new instance of Contact.
14 15 16 17 |
# File 'lib/last-resort/twilio.rb', line 14 def initialize(name = "", number = "") @name = name @number = number end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/last-resort/twilio.rb', line 12 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
12 13 14 |
# File 'lib/last-resort/twilio.rb', line 12 def number @number end |