Class: JekyllAsciidoctorPdf::Gituser
- Inherits:
-
Object
- Object
- JekyllAsciidoctorPdf::Gituser
- Defined in:
- lib/jekyll_asciidoctor_pdf/gitinfo.rb
Overview
Abstract structure for a hash dictionary
We use to create a dictionary of all github users to avoid multiple requests
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, name) ⇒ Gituser
constructor
A new instance of Gituser.
Constructor Details
#initialize(username, name) ⇒ Gituser
Returns a new instance of Gituser.
13 14 15 16 |
# File 'lib/jekyll_asciidoctor_pdf/gitinfo.rb', line 13 def initialize(username, name) @username = username @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/jekyll_asciidoctor_pdf/gitinfo.rb', line 12 def name @name end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
12 13 14 |
# File 'lib/jekyll_asciidoctor_pdf/gitinfo.rb', line 12 def username @username end |