Class: MessageQuickly::Messaging::Recipient
- Defined in:
- lib/message_quickly/messaging/recipient.rb
Instance Attribute Summary collapse
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
Attributes inherited from User
#first_name, #gender, #id, #last_name, #locale, #profile_pic, #timezone
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MessageQuickly::Messaging::Base
Instance Attribute Details
#phone_number ⇒ Object
Returns the value of attribute phone_number.
5 6 7 |
# File 'lib/message_quickly/messaging/recipient.rb', line 5 def phone_number @phone_number end |
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/message_quickly/messaging/recipient.rb', line 7 def to_hash if id.present? { id: id } else { phone_number: phone_number } end end |