Class: GHArchive::Release
Instance Method Summary
collapse
Methods inherited from Entity
#initialize
Instance Method Details
#assets ⇒ Object
275
276
277
|
# File 'lib/gh-archive/entities.rb', line 275
def assets
@payload['assets']
end
|
#author ⇒ Object
259
260
261
|
# File 'lib/gh-archive/entities.rb', line 259
def author
User.new(@payload['author'])
end
|
#body ⇒ Object
287
288
289
|
# File 'lib/gh-archive/entities.rb', line 287
def body
@payload['body']
end
|
#created_at ⇒ Object
267
268
269
|
# File 'lib/gh-archive/entities.rb', line 267
def created_at
Time.parse(@payload['created_at'])
end
|
#draft ⇒ Object
255
256
257
|
# File 'lib/gh-archive/entities.rb', line 255
def draft
@payload['draft']
end
|
#id ⇒ Object
239
240
241
|
# File 'lib/gh-archive/entities.rb', line 239
def id
@payload['id']
end
|
#name ⇒ Object
251
252
253
|
# File 'lib/gh-archive/entities.rb', line 251
def name
@payload['name']
end
|
#prerelease ⇒ Object
263
264
265
|
# File 'lib/gh-archive/entities.rb', line 263
def prerelease
@payload['prerelease']
end
|
#published_at ⇒ Object
271
272
273
|
# File 'lib/gh-archive/entities.rb', line 271
def published_at
Time.parse(@payload['published_at'])
end
|
#tag_name ⇒ Object
243
244
245
|
# File 'lib/gh-archive/entities.rb', line 243
def tag_name
@payload['tag_name']
end
|
#tarball_url ⇒ Object
279
280
281
|
# File 'lib/gh-archive/entities.rb', line 279
def tarball_url
@payload['tarball_url']
end
|
#target_commitish ⇒ Object
247
248
249
|
# File 'lib/gh-archive/entities.rb', line 247
def target_commitish
@payload['target_commitish']
end
|
#url ⇒ Object
235
236
237
|
# File 'lib/gh-archive/entities.rb', line 235
def url
@payload['url']
end
|
#zipball_url ⇒ Object
283
284
285
|
# File 'lib/gh-archive/entities.rb', line 283
def zipball_url
@payload['zipball_url']
end
|