Class: GithubMetadata::Contributor

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

Overview

Object representation of a github contributor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, realname = nil) ⇒ Contributor

Returns a new instance of Contributor.



17
18
19
# File 'lib/github_metadata.rb', line 17

def initialize(username, realname=nil)
  @username, @realname = username, realname
end

Instance Attribute Details

#realnameObject (readonly)

Returns the value of attribute realname.



16
17
18
# File 'lib/github_metadata.rb', line 16

def realname
  @realname
end

#usernameObject (readonly)

Returns the value of attribute username.



16
17
18
# File 'lib/github_metadata.rb', line 16

def username
  @username
end