Meeseeks.attr

You're seeing just the function attr, go back to Meeseeks module for more information.
Link to this function

attr(extractable, attribute)

View Source

Specs

attr(extractable(), String.t()) :: String.t() | nil

Returns the value of an attribute in a result, or nil if there isn't one.

Nil input returns nil.

Examples

iex> import Meeseeks.CSS
iex> result = Meeseeks.one("<div id=example>Hi</div>", css("#example"))
#Meeseeks.Result<{ <div id="example">Hi</div> }>
iex> Meeseeks.attr(result, "id")
"example"