Class: GHArchive::Release

Inherits:
Entity
  • Object
show all
Defined in:
lib/gh-archive/entities.rb

Instance Method Summary collapse

Methods inherited from Entity

#initialize

Constructor Details

This class inherits a constructor from GHArchive::Entity

Instance Method Details

#assetsObject



274
275
276
# File 'lib/gh-archive/entities.rb', line 274

def assets
    @payload['assets']
end

#authorObject



258
259
260
# File 'lib/gh-archive/entities.rb', line 258

def author
    User.new(@payload['author'])
end

#bodyObject



286
287
288
# File 'lib/gh-archive/entities.rb', line 286

def body
    @payload['body']
end

#created_atObject



266
267
268
# File 'lib/gh-archive/entities.rb', line 266

def created_at
    Time.parse(@payload['created_at'])
end

#draftObject



254
255
256
# File 'lib/gh-archive/entities.rb', line 254

def draft
    @payload['draft']
end

#idObject



238
239
240
# File 'lib/gh-archive/entities.rb', line 238

def id
    @payload['id']
end

#nameObject



250
251
252
# File 'lib/gh-archive/entities.rb', line 250

def name
    @payload['name']
end

#prereleaseObject



262
263
264
# File 'lib/gh-archive/entities.rb', line 262

def prerelease
    @payload['prerelease']
end

#published_atObject



270
271
272
# File 'lib/gh-archive/entities.rb', line 270

def published_at
    Time.parse(@payload['published_at'])
end

#tag_nameObject



242
243
244
# File 'lib/gh-archive/entities.rb', line 242

def tag_name
    @payload['tag_name']
end

#tarball_urlObject



278
279
280
# File 'lib/gh-archive/entities.rb', line 278

def tarball_url
    @payload['tarball_url']
end

#target_commitishObject



246
247
248
# File 'lib/gh-archive/entities.rb', line 246

def target_commitish
    @payload['target_commitish']
end

#urlObject



234
235
236
# File 'lib/gh-archive/entities.rb', line 234

def url
    @payload['url']
end

#zipball_urlObject



282
283
284
# File 'lib/gh-archive/entities.rb', line 282

def zipball_url
    @payload['zipball_url']
end