Class: JekyllAsciidoctorPdf::Gituser

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/jekyll_asciidoctor_pdf/gitinfo.rb', line 12

def name
  @name
end

#usernameObject (readonly)

Returns the value of attribute username.



12
13
14
# File 'lib/jekyll_asciidoctor_pdf/gitinfo.rb', line 12

def username
  @username
end