Packages

Environment configuration parser. Purely functional, server free.

Current section

Files

Jump to
analytics_3i lib analytics_3i entities entity.ex
Raw

lib/analytics_3i/entities/entity.ex

defmodule Analytics3i.Entities.Entity do
defstruct name: '', count: 0, sentiment: "neutral"
def new("" <> name, count, sentiment) do
struct(__MODULE__,
name: name,
count: count,
sentiment: sentiment
)
end
end