I'm not sure if this will work. Maybe is better to do:

```ruby
class << self
  attr_accessor :min_cost # :nodoc:
end
```