Sha256: fda276aef9c576ea6393e0ad8724712f256c9f4063c47a54920efe0d3db0722d

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module WhatsappSdk
  module Resource
    class Url
      attr_accessor :url, :type

      ADDRESS_TYPE = {
        home: "HOME",
        work: "WORK"
      }.freeze

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whatsapp_sdk-0.3.2 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.3.1 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.3.0 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.2.0 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.1.0 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.0.2 lib/whatsapp_sdk/resource/url.rb
whatsapp_sdk-0.0.1 lib/whatsapp_sdk/resource/url.rb