Class: Mural::MuralBoard
- Inherits:
-
Object
- Object
- Mural::MuralBoard
- Includes:
- Codec
- Defined in:
- lib/mural/mural_board.rb
Overview
Mural, the company, is also calling their main document a “mural” in lower case. Unfortunately, this doesn’t translate well to a programming language and I’d rather have a #<Mural::MuralBoard> instance instead of a #<Mural::Mural> one, the repetition is driving me insane. And it’s also what their main competitor (Miro) is calling the document, so it’s not to far-fetched. I also believe that historically, a “mural” (the document) used to be called a board as well within Mural (the company/product).
Defined Under Namespace
Classes: AccessInformation, CreatedBy, SharingSettings, UpdatedBy, VisitorsSettings
Class Method Summary collapse
Methods included from Codec
Class Method Details
.decode(json) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/mural/mural_board.rb', line 40 def self.decode(json) super.tap do |mural| mural.created_by = CreatedBy.decode(mural.created_by) mural.updated_by = UpdatedBy.decode(mural.updated_by) mural.sharing_settings = SharingSettings.decode(mural.sharing_settings) mural.visitors_settings = VisitorsSettings.decode(mural.visitors_settings) end end |