Sha256: 16071ff832bf6e265782254bd9d801674824b58b08453ab51f463be66020fcdf
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true # The media used by a component (button, header, body, footer) etc. module WhatsappSdk module Resource class PhoneNumberComponent attr_accessor :phone, :wa_id, :type def initialize(phone:, type:, wa_id:) @phone = phone @type = type @wa_id = wa_id end def to_h { phone: @phone, type: @type, wa_id: @wa_id } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whatsapp_sdk-1.0.1 | lib/whatsapp_sdk/resource/phone_number_component.rb |
whatsapp_sdk-1.0.0 | lib/whatsapp_sdk/resource/phone_number_component.rb |