Class: Gitlab::HookData::BaseBuilder

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

Constant Summary collapse

MARKDOWN_SIMPLE_IMAGE =
%r{
    #{::Gitlab::Regex.markdown_code_or_html_blocks}
  |
    (?<image>
      !
      \[(?<title>[^\n]*?)\]
      \((?<url>(?!(https?://|//))[^\n]+?)\)
    )
}mx.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ BaseBuilder

Returns a new instance of BaseBuilder.


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

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