Class: ActionBlocks::LayoutBuilder

Inherits:
BlockType show all
Defined in:
lib/action_blocks/builders/layout_builder.rb

Instance Attribute Summary

Attributes inherited from BaseBuilder

#dsl_delegate, #id

Instance Method Summary collapse

Methods inherited from BlockType

#is_block?, #type

Methods inherited from BaseBuilder

#after_build, #after_load, array_fields, #before_build, block_type, builds, builds_many, delegate_class, #evaluate, #freeze, includes_scheme_helpers, #initialize, #is_block?, #key, references, sets, sets_many, #ui_reference, #valid?

Constructor Details

This class inherits a constructor from ActionBlocks::BaseBuilder

Instance Method Details

#hashify(user) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/action_blocks/builders/layout_builder.rb', line 7

def hashify(user)
  {
    key: key,
    title: @title,
    workspace_keys: @workspaces.map(&:key),
  }
end