Sha256: 546359c0ca3c17ae99ccdd60e48cf8893da884fdaf7ba29940abebbcda4043a9
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
module AbsorbApi class Collection < ::Array attr_reader :metadata def initialize(elements, metadata = {}) super(elements) @metadata = metadata end private def method_missing(name, *args, &block) # if klass.respond_to?(name) # scoping { klass.send(name, *args) } # else super # end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
absorb_api-0.1.2 | lib/absorb_api/collection.rb |
absorb_api-0.1.1 | lib/absorb_api/collection.rb |
absorb_api-0.1.0 | lib/absorb_api/collection.rb |