Sha256: 8a8c78cfce20b1958e39186510fccd2bc6cf4b99cb761d6121a52bfb04514d8e
Contents?: true
Size: 265 Bytes
Versions: 3
Compression:
Stored size: 265 Bytes
Contents
class Anonymou def self.find_by(query={}) if query[:id] == 'open' self.new(true) elsif query[:id] == 'restricted' self.new(false) else nil end end def initialize(open) @open = open end def open? @open end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
portier-1.1.1 | spec/dummy/app/models/anonymou.rb |
portier-1.1.0 | spec/dummy/app/models/anonymou.rb |
portier-1.0.3 | spec/dummy/app/models/anonymou.rb |