Class: LabClient::Changes
- Includes:
- ClassHelpers
- Defined in:
- lib/labclient/merge_requests/change.rb
Overview
Inspect Helper, ‘Changes’ result for MR
Instance Attribute Summary
Attributes inherited from Klass
Attributes inherited from LabStruct
Instance Method Summary collapse
- #assignees ⇒ 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, #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 inherited from LabStruct
#as_json, #client, #keys, #slice, #success?
Constructor Details
This class inherits a constructor from LabClient::Klass
Instance Method Details
#assignees ⇒ Object
21 22 23 |
# File 'lib/labclient/merge_requests/change.rb', line 21 def assignees @table[:assignees].map { |x| User.new(x, response, client) } if has? :assignees end |
#inspect ⇒ Object
extend Docs
8 9 10 |
# File 'lib/labclient/merge_requests/change.rb', line 8 def inspect "#<Changes MR: #{id}, title: #{title}>" end |