Use class_attribute or accessor instead of method

Use: self.foo = 'bar' when accessor or class_attribute exist
Instead of: def self.foo; 'bar'; end