Sha256: fa444cbd8aa56136482db9405b75d5b915e29cc6455bc1baaac1e4a035bd1a98

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

module WhatsappSdk
  module Resource
    class Email
      attr_accessor :email, :type

      def initialize(email:, type:)
        @email = email
        @type = type
      end

      def to_h
        {
          email: @email,
          type: @type
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whatsapp_sdk-1.0.1 lib/whatsapp_sdk/resource/email.rb
whatsapp_sdk-1.0.0 lib/whatsapp_sdk/resource/email.rb
whatsapp_sdk-0.13.0 lib/whatsapp_sdk/resource/email.rb