Class: GithubContributions::GithubObjects::User

Inherits:
GithubContributions::GithubObject show all
Defined in:
lib/github_contributions/github_objects/user.rb

Instance Attribute Summary

Attributes inherited from GithubContributions::GithubObject

#data

Instance Method Summary collapse

Methods inherited from GithubContributions::GithubObject

#eql?, #hash, #user

Constructor Details

#initialize(data) ⇒ User

Returns a new instance of User.



4
5
6
7
# File 'lib/github_contributions/github_objects/user.rb', line 4

def initialize(data)
  super(data)
  @data[:html_url] = "https://github.com/#{data.}" if @data.html_url.nil?
end