Module: Basecamp3::Concerns::Bucketable

Instance Method Summary collapse

Instance Method Details

#bucketBasecamp3::Model

Returns the related bucket.

Returns:



9
10
11
12
13
14
# File 'lib/basecamp3/concerns/bucketable.rb', line 9

def bucket
  return nil if @bucket.nil?

  klass = TypeMapper.map(@bucket['type'])
  @mapped_bucket ||= klass.new(@bucket)
end