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



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

def assets
    @payload['assets']
end

#authorObject



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

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

#bodyObject



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

def body
    @payload['body']
end

#created_atObject



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

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

#draftObject



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

def draft
    @payload['draft']
end

#idObject



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

def id
    @payload['id']
end

#nameObject



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

def name
    @payload['name']
end

#prereleaseObject



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

def prerelease
    @payload['prerelease']
end

#published_atObject



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

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

#tag_nameObject



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

def tag_name
    @payload['tag_name']
end

#tarball_urlObject



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

def tarball_url
    @payload['tarball_url']
end

#target_commitishObject



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

def target_commitish
    @payload['target_commitish']
end

#urlObject



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

def url
    @payload['url']
end

#zipball_urlObject



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

def zipball_url
    @payload['zipball_url']
end