Sha256: a3d87cff8af741072368a2b7d07d0c7a67966d7592e42ad6539b3785612ff72e
Contents?: true
Size: 690 Bytes
Versions: 10
Compression:
Stored size: 690 Bytes
Contents
# typed: strict # frozen_string_literal: true module WhatsappSdk module Resource class PhoneNumber extend T::Sig sig { returns(String) } attr_accessor :phone sig { returns(String) } attr_accessor :wa_id sig { returns(AddressType) } attr_accessor :type sig { params(phone: String, type: AddressType, wa_id: String).void } def initialize(phone:, type:, wa_id:) @phone = phone @type = type @wa_id = wa_id end sig { returns(T::Hash[T.untyped, T.untyped]) } def to_h { phone: @phone, type: @type, wa_id: @wa_id } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems