This is a bromeliad Ananas nanus (nanus means small or dwarf) . Yes, that is a pineapple, quite edible! It's been growing in the house in a south facing room with lots of windows. It would have been fine outside in our SoCal climate like most bromeliads. It's so appealing it got to star in the dining room
.... Sculpted pineapples appeared as gateposts, weather vanes, and door lintels. ...stencilled on walls, woven into tablecloths, napkins, carpets and curtains, and painted onto the backs of chairs and tops of chests. ... the use of the pineapple motif in architecture reached its climax in the colossal stone 'Pineapple' structure at Dunmore Park, near Airth in Stirlingshire, Scotland."
In the 19th c the pineapple was not yet exhausted as a symbol of hospitality. It became a motif in the Arts and Crafts movement and appears on a set of Eastlake dining room chairs. Today the pineapple appears on the Internet in plaques
He appears low in " warmth and hospitality" but---- he hasn't yet eaten his present.