ExTwilio v0.5.0 ExTwilio.TaskRouter.Activity View Source

Represents the current status of your workers. Workers can only have a single activity at a time.

Link to this section Summary

Functions

Children represent path segments that come after the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active “Active” is a child. Children may or may not have a key in the next segment

Parents represent path segments that precede the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users “Services” is a parent. Parents will always have a key in the next segment. If your parent is under a submodule of ExTwilio, specify your parent using the ExTwilio.Parent struct

Underscored and lowercased collection name for a given resource. Delegates the real work to ExTwilio.Api.resource_collection_name/1 by default

CamelCase resource name as it would be used in Twilio’s API. Delegates the real work to ExTwilio.Api.resource_name/1 by default

Link to this section Functions

Link to this function all(options \\ []) View Source
all(list) :: [map]
Link to this function children() View Source
children() :: list

Children represent path segments that come after the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/Active “Active” is a child. Children may or may not have a key in the next segment.

Override this method in your resource to specify children in the order that they will appear in the path.

Link to this function do_new(struct, list) View Source
do_new(%ExTwilio.TaskRouter.Activity{account_sid: term, available: term, date_created: term, date_updated: term, friendly_name: term, links: term, sid: term, url: term, workspace_sid: term}, list) :: %ExTwilio.TaskRouter.Activity{account_sid: term, available: term, date_created: term, date_updated: term, friendly_name: term, links: term, sid: term, url: term, workspace_sid: term}
Link to this function new() View Source
new() :: %ExTwilio.TaskRouter.Activity{account_sid: term, available: term, date_created: term, date_updated: term, friendly_name: term, links: term, sid: term, url: term, workspace_sid: term}
Link to this function new(attrs) View Source
new(list) :: %ExTwilio.TaskRouter.Activity{account_sid: term, available: term, date_created: term, date_updated: term, friendly_name: term, links: term, sid: term, url: term, workspace_sid: term}
Link to this function parents() View Source
parents() :: list

Parents represent path segments that precede the current resource. For example, in the path /v2/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users “Services” is a parent. Parents will always have a key in the next segment. If your parent is under a submodule of ExTwilio, specify your parent using the ExTwilio.Parent struct.

Override this method in your resource to specify parents in the order that they will appear in the path.

Link to this function resource_collection_name() View Source

Underscored and lowercased collection name for a given resource. Delegates the real work to ExTwilio.Api.resource_collection_name/1 by default.

Override in your module after use ExTwilio.Resource if you need something different.

CamelCase resource name as it would be used in Twilio’s API. Delegates the real work to ExTwilio.Api.resource_name/1 by default.

Override in your module after use ExTwilio.Resource if you need something different.