Pexels.Photo (Pexels v0.1.0) View Source

%Pexels.Photo {
  avg_color: "#AFAFAD",
  height: 2736,
  id: 156934,
  photographer: "Flickr",
  photographer_id: 42313,
  photographer_url: "https://www.pexels.com/@flickr",
  src: %Pexels.Photo.Source {
    landscape: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200",
    large: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=650&w=940",
    large2x: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
    medium: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=350",
    original: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg",
    portrait: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1200&w=800",
    small: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=130",
    tiny: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=1&fit=crop&h=200&w=280"
  },
  url: "https://www.pexels.com/photo/white-and-black-cat-156934/",
  width: 3674
}

Link to this section Summary

Link to this section Types

Specs

t() :: %Pexels.Photo{
  avg_color: Pexels.Color.t(),
  height: :integer,
  id: :integer,
  photographer: String.t(),
  photographer_id: :integer,
  photographer_url: String.t(),
  src: Pexels.Photo.Source.t(),
  url: String.t(),
  width: :integer
}

Link to this section Functions

Link to this function

cast(params, opts \\ [])

View Source

Callback implementation for Construct.cast/2.

Link to this function

get(struct, key, default \\ nil)

View Source
Link to this function

make(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make/2.

Link to this function

make!(params \\ %{}, opts \\ [])

View Source

Callback implementation for Construct.make!/2.