Class: SupportOps::GitLab::MergeRequestDiffs

Inherits:
Base
  • Object
show all
Defined in:
lib/support_ops_gitlab/gitlab/merge_request_diffs.rb

Overview

Defines the class MergeRequestDiffs within the module SupportOps::GitLab.

Author:

  • Jason Colyer

Since:

  • 1.2.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#activate!, #approve!, attributes, #badges, #ban!, #block!, client, #client=, #commits, configure, #contributors, #create_support_pin!, #deactivate!, define_attributes, #delete!, #diffs, #disable_2fa!, #discussions, #emails, #encoded_path, #events, #find, #find!, #gpg_keys, #hard_delete!, #impersonations, #initialize, #issues, #jobs, #latest_pipeline, #members, #memberships, #merge_requests, #move!, #notes, #paid?, #pats, #pipeline_variables, #pipelines, #preferences, #projects, readonly_attributes, #reject!, #revoke!, #rotate!, #save!, #ssh_keys, #status, #store_original_attributes, #subscribe!, #support_pin, to_hash, #tokens, #unban!, #unblock!, #unsubscribe!, #webhooks

Constructor Details

This class inherits a constructor from SupportOps::GitLab::Base

Instance Attribute Details

#a_modeString

Old file mode of the file

Returns:

  • (String)

    the current value of a_mode



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def a_mode
  @a_mode
end

#b_modeString

New file mode of the file

Returns:

  • (String)

    the current value of b_mode



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def b_mode
  @b_mode
end

#deleted_fileBoolean

Indicates if the file has been removed

Returns:

  • (Boolean)

    the current value of deleted_file



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def deleted_file
  @deleted_file
end

#diffString

Diff representation of the changes made to the file

Returns:

  • (String)

    the current value of diff



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def diff
  @diff
end

#generated_fileBoolean

Indicates if the file is marked as generated

Returns:

  • (Boolean)

    the current value of generated_file



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def generated_file
  @generated_file
end

#new_fileBoolean

Indicates if the file has just been added

Returns:

  • (Boolean)

    the current value of new_file



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def new_file
  @new_file
end

#new_pathString

New path of the file

Returns:

  • (String)

    the current value of new_path



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def new_path
  @new_path
end

#old_pathString

Old path of the file

Returns:

  • (String)

    the current value of old_path



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def old_path
  @old_path
end

#renamed_fileBoolean

Indicates if the file has been renamed

Returns:

  • (Boolean)

    the current value of renamed_file



21
22
23
# File 'lib/support_ops_gitlab/gitlab/merge_request_diffs.rb', line 21

def renamed_file
  @renamed_file
end