Class: FetchedGem

Inherits:
Object show all
Defined in:
lib/downloadedwin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#directoryObject

Returns the value of attribute directory.



4
5
6
# File 'lib/downloadedwin.rb', line 4

def directory
  @directory
end

#fileNameObject

Returns the value of attribute fileName.



4
5
6
# File 'lib/downloadedwin.rb', line 4

def fileName
  @fileName
end

#installedObject

Returns the value of attribute installed.



4
5
6
# File 'lib/downloadedwin.rb', line 4

def installed
  @installed
end

Instance Method Details

#filePathObject



6
7
8
# File 'lib/downloadedwin.rb', line 6

def filePath
    File.join(@directory, @fileName)
end

#installed_strObject



10
11
12
# File 'lib/downloadedwin.rb', line 10

def installed_str
    @installed ? 'installed' : ''
end