Class: GHArchive::PullRequest

Inherits:
BasicIssue show all
Defined in:
lib/gh-archive/entities.rb

Instance Method Summary collapse

Methods inherited from BasicIssue

#body, #closed_at, #created_at, #id, #locked, #number, #state, #title, #updated_at, #url, #user

Methods inherited from Entity

#initialize

Constructor Details

This class inherits a constructor from GHArchive::Entity

Instance Method Details

#additionsObject



151
152
153
# File 'lib/gh-archive/entities.rb', line 151

def additions
    @payload['additions']
end

#baseObject



167
168
169
# File 'lib/gh-archive/entities.rb', line 167

def base
    @payload['base']
end

#changed_filesObject



159
160
161
# File 'lib/gh-archive/entities.rb', line 159

def changed_files
    @payload['changed_files']
end

#commentsObject



139
140
141
# File 'lib/gh-archive/entities.rb', line 139

def comments
    @payload['comments']
end

#commitsObject



147
148
149
# File 'lib/gh-archive/entities.rb', line 147

def commits
    @payload['commits']
end

#deletionsObject



155
156
157
# File 'lib/gh-archive/entities.rb', line 155

def deletions
    @payload['deletions']
end

#headObject



163
164
165
# File 'lib/gh-archive/entities.rb', line 163

def head
    @payload['head']
end

#merge_commit_shaObject



119
120
121
# File 'lib/gh-archive/entities.rb', line 119

def merge_commit_sha
    @payload['merge_commit_sha']
end

#mergeableObject



127
128
129
# File 'lib/gh-archive/entities.rb', line 127

def mergeable
    @payload['mergeable']
end

#mergeable_stateObject



131
132
133
# File 'lib/gh-archive/entities.rb', line 131

def mergeable_state
    @payload['mergeable_state']
end

#mergedObject



123
124
125
# File 'lib/gh-archive/entities.rb', line 123

def merged
    @payload['merged']
end

#merged_atObject



115
116
117
# File 'lib/gh-archive/entities.rb', line 115

def merged_at
    Time.parse(@payload['merged_at']) rescue nil
end

#merged_byObject



135
136
137
# File 'lib/gh-archive/entities.rb', line 135

def merged_by
    @payload['merged_by']
end

#review_commentsObject



143
144
145
# File 'lib/gh-archive/entities.rb', line 143

def review_comments
    @payload['review_comments']
end