module Line::Message::Builder::Flex::Actionable

The Actionable module provides a DSL for defining an action that can be triggered when a user interacts with certain Flex Message components (e.g., a Button component, or an entire Bubble or Box component if it’s made tappable).

When a component includes this module, it gains methods like message and postback to associate a specific LINE action with itself. The chosen action is stored in the action attribute.

Attributes

The following attribute is automatically added to classes that include this module:

action

The action object associated with this component. Returns an Actions::Message, Actions::Postback, or nil if no action is defined.

See also: