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 ↑
Functions
Specs:
- complete(Telephonist.State.t) :: Telephonist.State.t
Returns a 'complete' state, with data from a given state