Class: GitMeta::Get
- Inherits:
-
Object
- Object
- GitMeta::Get
- Defined in:
- lib/git_meta.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#scanner ⇒ Object
Returns the value of attribute scanner.
Instance Method Summary collapse
-
#initialize(sha, key = nil) ⇒ Get
constructor
A new instance of Get.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
36 37 38 |
# File 'lib/git_meta.rb', line 36 def key @key end |
#scanner ⇒ Object
Returns the value of attribute scanner.
36 37 38 |
# File 'lib/git_meta.rb', line 36 def scanner @scanner end |
Instance Method Details
#to_s ⇒ Object
45 46 47 |
# File 'lib/git_meta.rb', line 45 def to_s key ? @scanner.info[key] : @scanner.info.to_s end |