Class: Qas::Info
- Inherits:
-
Object
- Object
- Qas::Info
- Defined in:
- lib/qas/info.rb
Overview
Project Information
Constant Summary collapse
- ROOT =
Pathname.new(File.join(Dir.home, 'Projects'))
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
project git branch.
-
#folder ⇒ Object
readonly
project folder.
-
#name ⇒ Object
readonly
project name.
-
#url ⇒ Object
readonly
project uri.
Instance Method Summary collapse
-
#initialize(name, branch, url, language) ⇒ Info
constructor
A new instance of Info.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#branch ⇒ Object (readonly)
project git branch
14 15 16 |
# File 'lib/qas/info.rb', line 14 def branch @branch end |
#folder ⇒ Object (readonly)
project folder
20 21 22 |
# File 'lib/qas/info.rb', line 20 def folder @folder end |
#name ⇒ Object (readonly)
project name
11 12 13 |
# File 'lib/qas/info.rb', line 11 def name @name end |
#url ⇒ Object (readonly)
project uri
17 18 19 |
# File 'lib/qas/info.rb', line 17 def url @url end |
Instance Method Details
#to_s ⇒ Object
29 30 31 32 33 |
# File 'lib/qas/info.rb', line 29 def to_s <<~INFO #{name} INFO end |