Class: WhatsAppCloudApi::Types::MessageContact
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::MessageContact
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#wa_id ⇒ Object
readonly
Returns the value of attribute wa_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ MessageContact
constructor
A new instance of MessageContact.
Constructor Details
#initialize(data) ⇒ MessageContact
Returns a new instance of MessageContact.
34 35 36 37 |
# File 'lib/whatsapp_cloud_api/types.rb', line 34 def initialize(data) @input = data['input'] @wa_id = data['wa_id'] end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
32 33 34 |
# File 'lib/whatsapp_cloud_api/types.rb', line 32 def input @input end |
#wa_id ⇒ Object (readonly)
Returns the value of attribute wa_id.
32 33 34 |
# File 'lib/whatsapp_cloud_api/types.rb', line 32 def wa_id @wa_id end |