Class: Gitlab::IssuableMetadata::IssuableMeta

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/issuable_metadata.rb

Overview

data structure to store issuable meta data like upvotes, downvotes, notes and closing merge requests counts for issues and merge requests this avoiding n+1 queries when loading issuable collections on frontend

Instance Attribute Summary collapse

Instance Attribute Details

#blocking_issues_countObject

Returns the value of attribute blocking_issues_count

Returns:

  • (Object)

    the current value of blocking_issues_count


10
11
12
# File 'lib/gitlab/issuable_metadata.rb', line 10

def blocking_issues_count
  @blocking_issues_count
end

#downvotesObject

Returns the value of attribute downvotes

Returns:

  • (Object)

    the current value of downvotes


10
11
12
# File 'lib/gitlab/issuable_metadata.rb', line 10

def downvotes
  @downvotes
end

#merge_requests_countObject

Returns the value of attribute merge_requests_count

Returns:

  • (Object)

    the current value of merge_requests_count


10
11
12
# File 'lib/gitlab/issuable_metadata.rb', line 10

def merge_requests_count
  @merge_requests_count
end

#upvotesObject

Returns the value of attribute upvotes

Returns:

  • (Object)

    the current value of upvotes


10
11
12
# File 'lib/gitlab/issuable_metadata.rb', line 10

def upvotes
  @upvotes
end

#user_notes_countObject

Returns the value of attribute user_notes_count

Returns:

  • (Object)

    the current value of user_notes_count


10
11
12
# File 'lib/gitlab/issuable_metadata.rb', line 10

def user_notes_count
  @user_notes_count
end