Class: Gitlab::HookData::ProjectMemberBuilder
- Inherits:
-
BaseBuilder
- Object
- BaseBuilder
- Gitlab::HookData::ProjectMemberBuilder
- Defined in:
- lib/gitlab/hook_data/project_member_builder.rb
Constant Summary
Constants inherited from BaseBuilder
BaseBuilder::MARKDOWN_SIMPLE_IMAGE
Instance Attribute Summary
Attributes inherited from BaseBuilder
Instance Method Summary collapse
-
#build(event) ⇒ Object
{ :created_at=>“2021-03-02T10:43:17Z”, :updated_at=>“2021-03-02T10:43:17Z”, :project_name=>“gitlab”, :project_path=>“gitlab”, :project_path_with_namespace=>“namespace1/gitlab”, :project_id=>1, :user_username=>“johndoe”, :user_name=>“John Doe”, :user_email=>“[email protected]”, :user_id=>2, :access_level=>“Developer”, :project_visibility=>“internal”, :event_name=>“user_update_for_team” }.
Methods inherited from BaseBuilder
Constructor Details
This class inherits a constructor from Gitlab::HookData::BaseBuilder
Instance Method Details
#build(event) ⇒ Object
{
:created_at=>"2021-03-02T10:43:17Z",
:updated_at=>"2021-03-02T10:43:17Z",
:project_name=>"gitlab",
:project_path=>"gitlab",
:project_path_with_namespace=>"namespace1/gitlab",
:project_id=>1,
:user_username=>"johndoe",
:user_name=>"John Doe",
:user_email=>"[email protected]",
:user_id=>2,
:access_level=>"Developer",
:project_visibility=>"internal",
:event_name=>"user_update_for_team"
}
26 27 28 29 30 31 32 |
# File 'lib/gitlab/hook_data/project_member_builder.rb', line 26 def build(event) [ , project_member_data, event_data(event) ].reduce(:merge) end |