Method: Gloo::Objs::Slack#add_default_children

Defined in:
lib/gloo/objs/web/slack.rb

#add_default_childrenObject

Add children to this object. This is used by containers to add children needed for default configurations.



98
99
100
101
102
103
104
105
# File 'lib/gloo/objs/web/slack.rb', line 98

def add_default_children
  fac = @engine.factory
  fac.create_string URL, 'https://hooks.slack.com/services/...', self
  fac.create_string MSG, 'textual message', self
  fac.create_string USER, 'Slack Bot', self
  fac.create_string CHANNEL, 'general', self
  fac.create_string ICON, ':ghost:', self
end