class Gh::Trending::Repository
This class represents a trending repository in the github's trending repositories page.
Attributes
description[R]
language[R]
name[R]
period_stars[R]
url[R]
Public Class Methods
new( name: '', description: '', language: '', period_stars: 0, url: '' )
click to toggle source
Period stars correspond to the stars that the repository has in the current period being considered, for example: 283 stars THIS WEEK.
# File lib/gh_trending/repository.rb, line 9 def initialize( name: '', description: '', language: '', period_stars: 0, url: '' ) @name = name @description = description @language = language @period_stars = period_stars @url = url end
Public Instance Methods
to_h()
click to toggle source
# File lib/gh_trending/repository.rb, line 23 def to_h { name: name, description: description, language: language, period_stars: period_stars, url: url } end