Class: Whatsapp::Messages::Response::Contacts
- Inherits:
-
Object
- Object
- Whatsapp::Messages::Response::Contacts
- Defined in:
- lib/ruby/whatsapp/messages/response/contacts.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.deserialize(data) ⇒ Object
Deserializes a hash into a Messages::Response::Contacts object.
Instance Method Summary collapse
-
#initialize(input:, wa_id:) ⇒ Contacts
constructor
A new instance of Contacts.
Constructor Details
#initialize(input:, wa_id:) ⇒ Contacts
Returns a new instance of Contacts.
17 18 19 20 |
# File 'lib/ruby/whatsapp/messages/response/contacts.rb', line 17 def initialize(input:, wa_id:) @input = input @wa_id = wa_id end |
Instance Attribute Details
#input ⇒ String
9 10 11 |
# File 'lib/ruby/whatsapp/messages/response/contacts.rb', line 9 def input @input end |
#wa_id ⇒ String
13 14 15 |
# File 'lib/ruby/whatsapp/messages/response/contacts.rb', line 13 def wa_id @wa_id end |
Class Method Details
.deserialize(data) ⇒ Object
Deserializes a hash into a Messages::Response::Contacts object.
26 27 28 29 30 31 |
# File 'lib/ruby/whatsapp/messages/response/contacts.rb', line 26 def deserialize(data) new( input: data["input"], wa_id: data["wa_id"] ) end |