Module: Basecamp3::Concerns::Bucketable
- Included in:
- Basecamp3::Campfire, Basecamp3::CampfireLine, Basecamp3::Comment, Document, Forward, Inbox, Message, MessageBoard, Question, QuestionAnswer, Questionnaire, Schedule, ScheduleEntry, Todo, TodoList, TodoSet, Vault
- Defined in:
- lib/basecamp3/concerns/bucketable.rb
Instance Method Summary collapse
-
#bucket ⇒ Basecamp3::Model
Returns the related bucket.
Instance Method Details
#bucket ⇒ Basecamp3::Model
Returns the related bucket.
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 |