Class: Rho::SignatureCapture

Inherits:
Object
  • Object
show all
Defined in:
lib/commonAPI/signature/RhoSignatureApi.rb

Class Method Summary collapse

Class Method Details

.convert_options(opt) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/commonAPI/signature/RhoSignatureApi.rb', line 5

def convert_options(opt)
  if opt != nil
    res_opt = {}
    opt.each do |key,value|
      if value == true
        value = 'true'
      end
      if value == false
        value = 'false'
      end
      res_opt[key.to_s] = value.to_s
    end 
    return res_opt
  end
  return nil
end

.makeDefaultFileName(options) ⇒ Object



22
23
24
25
26
# File 'lib/commonAPI/signature/RhoSignatureApi.rb', line 22

def makeDefaultFileName(options)
    return if options[:fileName] && options[:fileName].length() > 0
    
    options[:fileName] = File.join( Rho::Application.databaseBlobFolder(), "/Image_" + Time.now.to_i.to_s() )
end