Class: LastResort::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/last-resort/twilio.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/last-resort/twilio.rb', line 12

def name
  @name
end

#numberObject

Returns the value of attribute number.



12
13
14
# File 'lib/last-resort/twilio.rb', line 12

def number
  @number
end