Class: UI::BaseUiElement

Inherits:
Object
  • Object
show all
Defined in:
lib/ui/base_ui_element.rb

Instance Method Summary collapse

Instance Method Details

#build(user) ⇒ Object

Use this method to return a valid hash and save it for later



8
9
10
11
# File 'lib/ui/base_ui_element.rb', line 8

def build(user)
  @template[:recipient][:id] = user.id
  @template
end