class Line::Message::Builder::Flex::Bubble

Represents a โ€œbubbleโ€ container in a LINE Flex Message. A bubble is a self-contained unit of content, structured into optional sections: header, hero (an image or box), body, and footer. Bubbles are the fundamental building blocks for single Flex Messages or for each item in a Carousel container.

Example: Creating a simple bubble with a body

Line::Message::Builder.with do
  flex alt_text: "Simple Bubble" do
    bubble do
      body do
        text "Hello, this is a bubble!"
      end
    end
  end
end

See also: