Aura.Model.HexRepo (Aura v0.9.0)

View Source

A struct describing a repository from a Hex-compliant API.

The main Hex.pm public repo is named "hexpm"; though private repos do exist.

Summary

Types

Whether the repository is active

Whether the repository is a billable entity

Whether the repository is public

The name of the repository (e.g "hexpm")

t()

Type describing a repository from a Hex-compliant API.

Functions

Builds a HexRepo from a map

Types

active?()

@type active?() :: boolean()

Whether the repository is active

billing_active?()

@type billing_active?() :: boolean()

Whether the repository is a billable entity

public?()

@type public?() :: boolean()

Whether the repository is public

repo_name()

@type repo_name() :: String.t()

The name of the repository (e.g "hexpm")

t()

@type t() :: %Aura.Model.HexRepo{
  active: active?(),
  billing_active: billing_active?(),
  inserted_at: Aura.Model.Common.inserted_at(),
  name: repo_name(),
  public: public?(),
  updated_at: Aura.Model.Common.updated_at()
}

Type describing a repository from a Hex-compliant API.

🏷️ Keys

Functions

build(m)

@spec build(m :: map()) :: t()

Builds a HexRepo from a map