Class: GithubMetadata::Contributor
- Inherits:
-
Object
- Object
- GithubMetadata::Contributor
- Defined in:
- lib/github_metadata.rb
Overview
Object representation of a github contributor
Instance Attribute Summary collapse
-
#realname ⇒ Object
readonly
Returns the value of attribute realname.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, realname = nil) ⇒ Contributor
constructor
A new instance of Contributor.
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
#realname ⇒ Object (readonly)
Returns the value of attribute realname.
16 17 18 |
# File 'lib/github_metadata.rb', line 16 def realname @realname end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
16 17 18 |
# File 'lib/github_metadata.rb', line 16 def username @username end |