Use attr_accessor instead of repeating methods