Class: GHArchive::Release
Instance Method Summary
collapse
Methods inherited from Entity
#initialize
Instance Method Details
#assets ⇒ Object
274
275
276
|
# File 'lib/gh-archive/entities.rb', line 274
def assets
@payload['assets']
end
|
#author ⇒ Object
258
259
260
|
# File 'lib/gh-archive/entities.rb', line 258
def author
User.new(@payload['author'])
end
|
#body ⇒ Object
286
287
288
|
# File 'lib/gh-archive/entities.rb', line 286
def body
@payload['body']
end
|
#created_at ⇒ Object
266
267
268
|
# File 'lib/gh-archive/entities.rb', line 266
def created_at
Time.parse(@payload['created_at'])
end
|
#draft ⇒ Object
254
255
256
|
# File 'lib/gh-archive/entities.rb', line 254
def draft
@payload['draft']
end
|
#id ⇒ Object
238
239
240
|
# File 'lib/gh-archive/entities.rb', line 238
def id
@payload['id']
end
|
#name ⇒ Object
250
251
252
|
# File 'lib/gh-archive/entities.rb', line 250
def name
@payload['name']
end
|
#prerelease ⇒ Object
262
263
264
|
# File 'lib/gh-archive/entities.rb', line 262
def prerelease
@payload['prerelease']
end
|
#published_at ⇒ Object
270
271
272
|
# File 'lib/gh-archive/entities.rb', line 270
def published_at
Time.parse(@payload['published_at'])
end
|
#tag_name ⇒ Object
242
243
244
|
# File 'lib/gh-archive/entities.rb', line 242
def tag_name
@payload['tag_name']
end
|
#tarball_url ⇒ Object
278
279
280
|
# File 'lib/gh-archive/entities.rb', line 278
def tarball_url
@payload['tarball_url']
end
|
#target_commitish ⇒ Object
246
247
248
|
# File 'lib/gh-archive/entities.rb', line 246
def target_commitish
@payload['target_commitish']
end
|
#url ⇒ Object
234
235
236
|
# File 'lib/gh-archive/entities.rb', line 234
def url
@payload['url']
end
|
#zipball_url ⇒ Object
282
283
284
|
# File 'lib/gh-archive/entities.rb', line 282
def zipball_url
@payload['zipball_url']
end
|