Sha256: 6214b69f92cf6c18c11546c0bf5be5b42b955b5ef9203efb0ab9cc7945181a5e

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 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_a
      [@name, @lang, @star_count.to_s]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
git-trend-1.1.7 lib/git_trend/project.rb
git-trend-1.1.6 lib/git_trend/project.rb
git-trend-1.1.5 lib/git_trend/project.rb
git-trend-1.1.4 lib/git_trend/project.rb
git-trend-1.1.3 lib/git_trend/project.rb
git-trend-1.1.2 lib/git_trend/project.rb