Module: FileConvert::Configure

Included in:
FileConvert
Defined in:
lib/file_convert/configure.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configObject



3
4
5
6
# File 'lib/file_convert/configure.rb', line 3

def self.config
  @@config ||= {}
  @@config
end

Instance Method Details

#configObject



12
13
14
# File 'lib/file_convert/configure.rb', line 12

def config
  Configure.config
end

#config_present?Boolean

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/file_convert/configure.rb', line 16

def config_present?
  provider = 'google_service_account'
  config.is_a?(Hash) && config.key?(provider)
end

#configure {|config| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/file_convert/configure.rb', line 8

def configure
  yield config
end