Set uninitialized class attribute.

Fixes #24.
Use cattr_accessor in class.