View Source Breddit.Submission (Breddit v0.0.2)

Link to this section Summary

Link to this section Types

Specs

image() :: %{height: integer(), width: integer(), url: String.t()}

Specs

t() :: %Breddit.Submission{
  approved_at_utc: float(),
  category: any(),
  clicked: boolean(),
  gildings: list(),
  id: String.t(),
  is_original_content: boolean(),
  is_self: boolean(),
  media_embed: %{
    content: String.t(),
    height: number(),
    scrolling: boolean(),
    width: integer()
  },
  name: String.t(),
  num_comments: integer(),
  over_18: boolean(),
  permalink: String.t(),
  post_hint: String.t(),
  preview: %{
    enabled: boolean(),
    images: [%{id: String.t(), resolutions: [image()], source: image()}],
    variants: map()
  },
  score: integer(),
  subreddit: String.t(),
  subreddit_id: String.t(),
  thumbnail: String.t(),
  thumbnail_height: integer(),
  thumbnail_width: integer(),
  title: String.t(),
  upvote_ratio: float(),
  url: String.t(),
  view_count: integer()
}