class Gh::Trending::Developer

This class represents a trending developer in the github's trending developers page.

Attributes

full_name[R]
hot_repository_url[R]
user_profile_url[R]

Public Class Methods

new( full_name: '', user_profile_url: '', hot_repository_url: '' ) click to toggle source
# File lib/gh_trending/developer.rb, line 8
def initialize(
  full_name: '',
  user_profile_url: '',
  hot_repository_url: ''
)
  @full_name = full_name
  @user_profile_url = user_profile_url
  @hot_repository_url = hot_repository_url
end

Public Instance Methods

to_h() click to toggle source
# File lib/gh_trending/developer.rb, line 18
def to_h
  {
    full_name: full_name,
    user_profile_url: user_profile_url,
    hot_repository_url: hot_repository_url
  }
end