Module: Gitlab::DataBuilder::FeatureFlag

Extended by:
FeatureFlag
Included in:
FeatureFlag
Defined in:
lib/gitlab/data_builder/feature_flag.rb

Instance Method Summary collapse

Instance Method Details

#build(feature_flag, user) ⇒ Object


8
9
10
11
12
13
14
15
16
# File 'lib/gitlab/data_builder/feature_flag.rb', line 8

def build(feature_flag, user)
  {
    object_kind: 'feature_flag',
    project: feature_flag.project.hook_attrs,
    user: user.hook_attrs,
    user_url: Gitlab::UrlBuilder.build(user),
    object_attributes: feature_flag.hook_attrs
  }
end