Class: FetchedGem
- Inherits:
-
Object
- Object
- FetchedGem
- Defined in:
- lib/downloadedwin.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#fileName ⇒ Object
Returns the value of attribute fileName.
-
#installed ⇒ Object
Returns the value of attribute installed.
Instance Method Summary collapse
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory.
2 3 4 |
# File 'lib/downloadedwin.rb', line 2 def directory @directory end |
#fileName ⇒ Object
Returns the value of attribute fileName.
2 3 4 |
# File 'lib/downloadedwin.rb', line 2 def fileName @fileName end |
#installed ⇒ Object
Returns the value of attribute installed.
2 3 4 |
# File 'lib/downloadedwin.rb', line 2 def installed @installed end |
Instance Method Details
#filePath ⇒ Object
4 5 6 |
# File 'lib/downloadedwin.rb', line 4 def filePath File.join(@directory, @fileName) end |
#installed_str ⇒ Object
8 9 10 |
# File 'lib/downloadedwin.rb', line 8 def installed_str @installed ? 'installed' : '' end |