Capabilities are a generic system that allow things (entities, tile entity, etc.) to provide an API as well as store data.
Attributes are simply a single double value. Additionally, attributes can be influenced by various things: currently active potion effects, the currently held items or just directly applied attribute modifiers. All these modifiers work together to produce the final value for an attribute. So in your case it sounds like an attribute might be a good choice.