Class: UndriveGoogle::CaptiveFile

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/undrive_google/captive_file.rb

Overview

A file on Google Drive

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exportsObject

Returns the value of attribute exports.



8
9
10
# File 'lib/undrive_google/captive_file.rb', line 8

def exports
  @exports
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/undrive_google/captive_file.rb', line 8

def options
  @options
end

Instance Method Details

#liberate!Object

Returns nil.

Returns:

  • nil



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/undrive_google/captive_file.rb', line 11

def liberate!
  sweep! if Options.instance.sweep
  @exports = []
  extensions.each do |format|
    liberate = Actions::Liberate.new(format)
    @exports << liberate.file_path
    liberate.liberate!
  end

  nil
end