Shared.Data.Strategy (Market Manager v2.1.9)

View Source

A strategy for selling a product.

Summary

Types

description()

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

id()

@type id() :: atom()

name()

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

strategy()

@type strategy() ::
  %{
    required(name :: String.t()) => String.t(),
    required(id :: String.t()) => atom(),
    required(description :: String.t()) => String.t()
  }
  | [name: String.t(), id: atom(), description: String.t()]

t()

@type t() :: %Shared.Data.Strategy{description: description(), id: id(), name: name()}

Strategy details

Functions

new(strategy)

@spec new(strategy()) :: t()