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



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

def additions
    @payload['additions']
end

#baseObject



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

def base
    @payload['base']
end

#changed_filesObject



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

def changed_files
    @payload['changed_files']
end

#commentsObject



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

def comments
    @payload['comments']
end

#commitsObject



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

def commits
    @payload['commits']
end

#deletionsObject



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

def deletions
    @payload['deletions']
end

#headObject



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

def head
    @payload['head']
end

#merge_commit_shaObject



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

def merge_commit_sha
    @payload['merge_commit_sha']
end

#mergeableObject



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

def mergeable
    @payload['mergeable']
end

#mergeable_stateObject



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

def mergeable_state
    @payload['mergeable_state']
end

#mergedObject



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

def merged
    @payload['merged']
end

#merged_atObject



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

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

#merged_byObject



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

def merged_by
    @payload['merged_by']
end

#review_commentsObject



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

def review_comments
    @payload['review_comments']
end