OEmbedProviders.Provider.Endpoint (OEmbed Providers v0.1.0) View Source

Represents an OEmbed endpoint.

Link to this section Summary

Functions

Convert a map into a OEmbedProviders.Provider.Endpoint struct.

Check if the given URL matches this Provider.

Link to this section Types

Specs

t() :: %OEmbedProviders.Provider.Endpoint{
  discovery: boolean() | nil,
  formats: [String.t()],
  schemes: [String.t()],
  url: String.t() | nil
}

Link to this section Functions

Specs

from_map(data :: map()) :: t()

Convert a map into a OEmbedProviders.Provider.Endpoint struct.

Specs

matches?(provider :: t(), url :: String.t()) :: boolean()

Check if the given URL matches this Provider.