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.



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

def exports
  @exports
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#liberate!Object

Returns nil.

Returns:

  • nil



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

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

  nil
end