lib/whatsapp_sdk/resource/url.rb in whatsapp_sdk-0.12.1 vs lib/whatsapp_sdk/resource/url.rb in whatsapp_sdk-0.13.0

- old
+ new

@@ -1,25 +1,16 @@ -# typed: strict # frozen_string_literal: true module WhatsappSdk module Resource class Url - extend T::Sig + attr_accessor :url, :type - sig { returns(String) } - attr_accessor :url - - sig { returns(AddressType) } - attr_accessor :type - - sig { params(url: String, type: AddressType).void } def initialize(url:, type:) @url = url @type = type end - sig { returns(T::Hash[T.untyped, T.untyped]) } def to_h { url: @url, type: @type }