Class: Ghub::Endpoints::Pulls::Models::Show
- Inherits:
-
Struct
- Object
- Struct
- Ghub::Endpoints::Pulls::Models::Show
- Defined in:
- lib/ghub/endpoints/pulls/models/show.rb
Overview
Defines a single pull request.
Instance Attribute Summary collapse
-
#_links ⇒ Object
Returns the value of attribute _links.
-
#active_lock_reason ⇒ Object
Returns the value of attribute active_lock_reason.
-
#additions ⇒ Object
Returns the value of attribute additions.
-
#assignee ⇒ Object
Returns the value of attribute assignee.
-
#assignees ⇒ Object
Returns the value of attribute assignees.
-
#author_association ⇒ Object
Returns the value of attribute author_association.
-
#auto_merge ⇒ Object
Returns the value of attribute auto_merge.
-
#base ⇒ Object
Returns the value of attribute base.
-
#body ⇒ Object
Returns the value of attribute body.
-
#changed_files ⇒ Object
Returns the value of attribute changed_files.
-
#closed_at ⇒ Object
Returns the value of attribute closed_at.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#comments_url ⇒ Object
Returns the value of attribute comments_url.
-
#commits ⇒ Object
Returns the value of attribute commits.
-
#commits_url ⇒ Object
Returns the value of attribute commits_url.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deletions ⇒ Object
Returns the value of attribute deletions.
-
#diff_url ⇒ Object
Returns the value of attribute diff_url.
-
#draft ⇒ Object
Returns the value of attribute draft.
-
#head ⇒ Object
Returns the value of attribute head.
-
#html_url ⇒ Object
Returns the value of attribute html_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issue_url ⇒ Object
Returns the value of attribute issue_url.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#locked ⇒ Object
Returns the value of attribute locked.
-
#maintainer_can_modify ⇒ Object
Returns the value of attribute maintainer_can_modify.
-
#merge_commit_sha ⇒ Object
Returns the value of attribute merge_commit_sha.
-
#mergeable ⇒ Object
Returns the value of attribute mergeable.
-
#mergeable_state ⇒ Object
Returns the value of attribute mergeable_state.
-
#merged ⇒ Object
Returns the value of attribute merged.
-
#merged_at ⇒ Object
Returns the value of attribute merged_at.
-
#merged_by ⇒ Object
Returns the value of attribute merged_by.
-
#milestone ⇒ Object
Returns the value of attribute milestone.
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#number ⇒ Object
Returns the value of attribute number.
-
#patch_url ⇒ Object
Returns the value of attribute patch_url.
-
#rebaseable ⇒ Object
Returns the value of attribute rebaseable.
-
#requested_reviewers ⇒ Object
Returns the value of attribute requested_reviewers.
-
#requested_teams ⇒ Object
Returns the value of attribute requested_teams.
-
#review_comment_url ⇒ Object
Returns the value of attribute review_comment_url.
-
#review_comments ⇒ Object
Returns the value of attribute review_comments.
-
#review_comments_url ⇒ Object
Returns the value of attribute review_comments_url.
-
#state ⇒ Object
Returns the value of attribute state.
-
#statuses_url ⇒ Object
Returns the value of attribute statuses_url.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Show
constructor
A new instance of Show.
Constructor Details
#initialize ⇒ Show
Returns a new instance of Show.
74 75 76 77 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 74 def initialize(**) super freeze end |
Instance Attribute Details
#_links ⇒ Object
Returns the value of attribute _links
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def _links @_links end |
#active_lock_reason ⇒ Object
Returns the value of attribute active_lock_reason
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def active_lock_reason @active_lock_reason end |
#additions ⇒ Object
Returns the value of attribute additions
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def additions @additions end |
#assignee ⇒ Object
Returns the value of attribute assignee
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def assignee @assignee end |
#assignees ⇒ Object
Returns the value of attribute assignees
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def assignees @assignees end |
#author_association ⇒ Object
Returns the value of attribute author_association
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def @author_association end |
#auto_merge ⇒ Object
Returns the value of attribute auto_merge
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def auto_merge @auto_merge end |
#base ⇒ Object
Returns the value of attribute base
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def base @base end |
#body ⇒ Object
Returns the value of attribute body
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def body @body end |
#changed_files ⇒ Object
Returns the value of attribute changed_files
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def changed_files @changed_files end |
#closed_at ⇒ Object
Returns the value of attribute closed_at
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def closed_at @closed_at end |
#comments ⇒ Object
Returns the value of attribute comments
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def comments @comments end |
#comments_url ⇒ Object
Returns the value of attribute comments_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def comments_url @comments_url end |
#commits ⇒ Object
Returns the value of attribute commits
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def commits @commits end |
#commits_url ⇒ Object
Returns the value of attribute commits_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def commits_url @commits_url end |
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def created_at @created_at end |
#deletions ⇒ Object
Returns the value of attribute deletions
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def deletions @deletions end |
#diff_url ⇒ Object
Returns the value of attribute diff_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def diff_url @diff_url end |
#draft ⇒ Object
Returns the value of attribute draft
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def draft @draft end |
#head ⇒ Object
Returns the value of attribute head
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def head @head end |
#html_url ⇒ Object
Returns the value of attribute html_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def html_url @html_url end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def id @id end |
#issue_url ⇒ Object
Returns the value of attribute issue_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def issue_url @issue_url end |
#labels ⇒ Object
Returns the value of attribute labels
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def labels @labels end |
#locked ⇒ Object
Returns the value of attribute locked
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def locked @locked end |
#maintainer_can_modify ⇒ Object
Returns the value of attribute maintainer_can_modify
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def maintainer_can_modify @maintainer_can_modify end |
#merge_commit_sha ⇒ Object
Returns the value of attribute merge_commit_sha
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def merge_commit_sha @merge_commit_sha end |
#mergeable ⇒ Object
Returns the value of attribute mergeable
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def mergeable @mergeable end |
#mergeable_state ⇒ Object
Returns the value of attribute mergeable_state
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def mergeable_state @mergeable_state end |
#merged ⇒ Object
Returns the value of attribute merged
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def merged @merged end |
#merged_at ⇒ Object
Returns the value of attribute merged_at
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def merged_at @merged_at end |
#merged_by ⇒ Object
Returns the value of attribute merged_by
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def merged_by @merged_by end |
#milestone ⇒ Object
Returns the value of attribute milestone
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def milestone @milestone end |
#node_id ⇒ Object
Returns the value of attribute node_id
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def node_id @node_id end |
#number ⇒ Object
Returns the value of attribute number
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def number @number end |
#patch_url ⇒ Object
Returns the value of attribute patch_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def patch_url @patch_url end |
#rebaseable ⇒ Object
Returns the value of attribute rebaseable
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def rebaseable @rebaseable end |
#requested_reviewers ⇒ Object
Returns the value of attribute requested_reviewers
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def requested_reviewers @requested_reviewers end |
#requested_teams ⇒ Object
Returns the value of attribute requested_teams
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def requested_teams @requested_teams end |
#review_comment_url ⇒ Object
Returns the value of attribute review_comment_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def review_comment_url @review_comment_url end |
#review_comments ⇒ Object
Returns the value of attribute review_comments
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def review_comments @review_comments end |
#review_comments_url ⇒ Object
Returns the value of attribute review_comments_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def review_comments_url @review_comments_url end |
#state ⇒ Object
Returns the value of attribute state
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def state @state end |
#statuses_url ⇒ Object
Returns the value of attribute statuses_url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def statuses_url @statuses_url end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def url @url end |
#user ⇒ Object
Returns the value of attribute user
8 9 10 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 8 def user @user end |
Class Method Details
.for(**attributes) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/ghub/endpoints/pulls/models/show.rb', line 58 def self.for(**attributes) assignee = attributes[:assignee] new( **attributes.merge!( _links: Ghub::Models::Links.for(**attributes[:_links]), assignee: (Ghub::Models::User[**assignee] if assignee), assignees: attributes[:assignees].map { |data| Ghub::Models::User[**data] }, base: Ghub::Models::Branch[**attributes[:base]], head: Ghub::Models::Branch[**attributes[:head]], labels: attributes[:labels].map { |data| Ghub::Models::Label[**data] }, user: Ghub::Models::User[**attributes[:user]] ) ) end |