Skip to content

Commit

Permalink
fix: function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCoelho2003 committed Nov 7, 2024
1 parent 01dfeb0 commit 66bda3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/atomic/organizations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,15 @@ defmodule Atomic.Organizations do
end

@doc """
Returns the list of announcements belonging to an organization.
Returns the list of announcements belonging to an organization, filtered and validated by the given parameters.
## Examples
iex> list_announcements_by_organization_id("99d7c9e5-4212-4f59-a097-28aaa33c2621")
[%Announcement{}, ...]
iex> list_announcements_by_organization_id("99d7c9e5-4212-4f59-a097-28aaa33c2621", %{})
{:ok, [%Announcement{}, ...]}
iex> list_announcements_by_organization_id("99d7c9e5-4212-4f59-a097-28aaa33c2621", %{}, [some_option: true])
{:ok, [%Announcement{}, ...]}
"""
def list_announcements_by_organization_id(id, %{} = flop, opts \\ []) when is_list(opts) do
Expand Down

0 comments on commit 66bda3f

Please sign in to comment.