Sha256: edc2cec580c0df893f7bb3eebef4bb16215167f7a24bd389ed9ca55581bc521b
Contents?: true
Size: 539 Bytes
Versions: 8
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true # typed: strict module WhatsappSdk module Resource class Url extend T::Sig 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 } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems