Sha256: e151a6a1ebae7f9fa2bdf4e7ccf18662835661767e409683c67435df00b5b649
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module Yaks class NullResource include Enumerable def initialize(opts = {}) @collection = opts.fetch(:collection) { false } end def each to_enum end def attributes {} end def links [] end def subresources {} end def [](*) end def type end def collection? @collection end def null_resource? true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.4.2 | lib/yaks/null_resource.rb |