Class: Gitlab::HookData::BaseBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/hook_data/base_builder.rb

Constant Summary collapse

MARKDOWN_SIMPLE_IMAGE =
"#{::Gitlab::Regex.markdown_code_or_html_blocks_untrusted}" \
'|' \
'(?P<image>' \
'!' \
'\[(?P<title>[^\n]*?)\]' \
'\((?P<url>(?P<https>(https?://|//)?)[^\n]+?)\)' \
')'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ BaseBuilder

Returns a new instance of BaseBuilder.



17
18
19
# File 'lib/gitlab/hook_data/base_builder.rb', line 17

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



6
7
8
# File 'lib/gitlab/hook_data/base_builder.rb', line 6

def object
  @object
end