Class: LabClient::MergeRequestDiff
- Includes:
- ClassHelpers
- Defined in:
- lib/labclient/merge_requests/diff.rb
Overview
Inspect Helper
Instance Attribute Summary
Attributes inherited from Klass
Attributes inherited from LabStruct
Instance Method Summary collapse
- #details ⇒ Object
-
#inspect ⇒ Object
extend Docs.
Methods included from ClassHelpers
Methods inherited from Klass
#api_methods, #collect_project_id, #collect_release_id, #collect_repository_id, date_time_attrs, #format_time?, #group_name, #help, #initialize, #klass, #quiet?, #success?, #to_json, #update_self, user_attrs, #valid_group_project_levels, #verbose
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from CurlHelper
Methods included from Logger
Methods inherited from LabStruct
#[], #[]=, #as_json, #client, #initialize, #key?, #keys, #method_missing, #respond_to_missing?, #slice, #success?, #to_h
Constructor Details
This class inherits a constructor from LabClient::Klass
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LabClient::LabStruct
Instance Method Details
#details ⇒ Object
12 13 14 15 16 |
# File 'lib/labclient/merge_requests/diff.rb', line 12 def details project_id = collect_project_id update_self client.merge_requests.diff_versions(project_id, merge_request_id, id) end |
#inspect ⇒ Object
extend Docs
8 9 10 |
# File 'lib/labclient/merge_requests/diff.rb', line 8 def inspect "#<MergeRequestDiff id: #{id}, MR: #{merge_request_id}, state: #{state}>" end |