Telephonist.State

Elixir.Telephonist.State represents a given state for an ongoing phone call.

Attributes

  • name: the name of the state.
  • machine: the module name of the state machine the state is a part of.
  • options: the custom options that were passed to this state.
  • twiml: the TwiML representation of the state.

Example

%Telephonist.State{
  name: "introduction",
  machine: IntroductionMachine,
  options: %{
    language: "en"
  },
  twiml: "<?xml ..."
}

Summary

complete(state)

Returns a 'complete' state, with data from a given state

Types

t :: %Telephonist.State{name: atom, machine: atom, options: %{}, twiml: String.t}

Functions

complete(state)

Specs:

Returns a 'complete' state, with data from a given state