class GitTrend::Project

Attributes

all_star_count[RW]
description[RW]
fork_count[RW]
lang[RW]
name[RW]
star_count[RW]

Public Class Methods

new(name: "", description: "", lang: "", all_star_count: 0, fork_count: 0, star_count: 0) click to toggle source
# File lib/git_trend/project.rb, line 5
def initialize(name: "", description: "", lang: "", all_star_count: 0, fork_count: 0, star_count: 0)
  self.name = name
  self.description = description
  self.lang = lang
  self.all_star_count = all_star_count
  self.fork_count = fork_count
  self.star_count = star_count
end

Public Instance Methods

to_h() click to toggle source
# File lib/git_trend/project.rb, line 14
def to_h
  {
    name: name,
    description: description,
    lang: lang,
    all_star_count: all_star_count,
    fork_count: fork_count,
    star_count: star_count,
  }
end