Sha256: 0ab931b6f3270ba3bd77d20b0d8e7ea3e8091363c9fd2a37d6e4ba9bb719101c

Contents?: true

Size: 656 Bytes

Versions: 14

Compression:

Stored size: 656 Bytes

Contents

module GitTrend
  class Project
    attr_accessor :name, :description, :lang, :all_star_count, :fork_count, :star_count

    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

    def to_h
      {
        name: name,
        description: description,
        lang: lang,
        all_star_count: all_star_count,
        fork_count: fork_count,
        star_count: star_count,
      }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
git-trend-1.4.0 lib/git_trend/project.rb
git-trend-1.3.0 lib/git_trend/project.rb
git-trend-1.2.9 lib/git_trend/project.rb
git-trend-1.2.8 lib/git_trend/project.rb
git-trend-1.2.7 lib/git_trend/project.rb
git-trend-1.2.6 lib/git_trend/project.rb
git-trend-1.2.5 lib/git_trend/project.rb
git-trend-1.2.4 lib/git_trend/project.rb
git-trend-1.2.3 lib/git_trend/project.rb
git-trend-1.2.2 lib/git_trend/project.rb
git-trend-1.2.1 lib/git_trend/project.rb
git-trend-1.2.0 lib/git_trend/project.rb
git-trend-1.1.9 lib/git_trend/project.rb
git-trend-1.1.8 lib/git_trend/project.rb