     str = :erlang.binary_to_list(body)
     "#{Mbcs.decode!(str, :cp932, return: :list)}"
   end
-
-  defp meta(body) do
-    %MetaInspector.Meta{og_title: og_title(body), og_type: og_type(body), og_url: og_url(body), og_image: og_image(body)}
-  end
 end

    |> Floki.attribute("content")
  end

  def to_utf8(body) do
    try do
      String.to_char_list(body)

  @type t :: %__MODULE__{status: integer, title: String.t, best_title: String.t, best_image: String.t, meta: MetaInspector.Meta.t}

  def new(url) do
    case HTTPoison.get(url) do
      {:ok, response} -> fetch(response)
      {:error, reason} -> {:error, reason}
    end
  end

  def fetch(response) do
    body = response.body |> to_utf8
    %MetaInspector{status: status(response), title: title(body), best_title: best_title(body), best_image: best_image(body), meta: meta(body)}
  end

  def status(response) do
    response.status_code
  end

  @spec title(String.t) :: String.t
