Sha256: c9310732bda2e45cb68f6687a98f4ff0a111d35d3b9a547013455c71f1e356db
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
# A concern for bucketable models module Basecamp3 module Concerns module Bucketable # Returns the related bucket. # # @return [Basecamp3::Model] def bucket return nil if @bucket.nil? klass = TypeMapper.map(@bucket['type']) @mapped_bucket ||= klass.new(@bucket) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basecamp3-0.1.4 | lib/basecamp3/concerns/bucketable.rb |
basecamp3-0.1.3 | lib/basecamp3/concerns/bucketable.rb |