Method: Juli::Macro::Photo#initialize
- Defined in:
- lib/juli/macro/photo.rb
#initialize ⇒ Photo
Returns a new instance of Photo.
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/juli/macro/photo.rb', line 60 def initialize super for storage in conf_photo && conf_photo['storages'] || {} if storage['kind'] == 'aws' _h = {} storage['params'].each{|k,v| _h[k.to_sym] = v} # to sym @aws = ::Aws::S3::Client.new(_h) end end end |