Class: Btb
- Inherits:
-
Object
- Object
- Btb
- Defined in:
- lib/btb.rb
Class Method Summary collapse
Class Method Details
.to_binary(name, blob) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/btb.rb', line 3 def self.to_binary(name, blob) decoded = Base64.decode64(blob.split(',')[1]) file = nil File.open("/tmp/#{name}", 'wb') do |f| f.write(decoded) return f end end |