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