Class: Github::Trending::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/github_trending/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/github_trending/project.rb', line 4

def description
  @description
end

#langObject

Returns the value of attribute lang.



4
5
6
# File 'lib/github_trending/project.rb', line 4

def lang
  @lang
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/github_trending/project.rb', line 4

def name
  @name
end

#star_countObject

Returns the value of attribute star_count.



4
5
6
# File 'lib/github_trending/project.rb', line 4

def star_count
  @star_count
end

Instance Method Details

#to_aObject



6
7
8
# File 'lib/github_trending/project.rb', line 6

def to_a
  [@name, @lang, @star_count.to_s]
end