Class: Ecoportal::API::V2::S3::Data

Inherits:
Common::Content::DoubleModel show all
Defined in:
lib/ecoportal/api/v2/s3/data.rb

Constant Summary

Constants included from Common::Content::DoubleModel::Diffable

Common::Content::DoubleModel::Diffable::DIFF_CLASS

Constants included from Common::Content::DoubleModel::Base

Common::Content::DoubleModel::Base::NOT_USED

Instance Attribute Summary

Attributes included from Common::Content::DoubleModel::Parented

#_parent, #_parent_key

Instance Method Summary collapse

Methods inherited from Common::Content::DoubleModel

#initialize, new_uuid

Methods included from Common::Content::DoubleModel::Diffable

#as_update, #dirty?

Methods included from Common::Content::Includer

#include_missing

Constructor Details

This class inherits a constructor from Ecoportal::API::Common::Content::DoubleModel

Instance Method Details

#[](key) ⇒ Object



14
15
16
# File 'lib/ecoportal/api/v2/s3/data.rb', line 14

def [](key)
  doc[key.to_s]
end

#user_idObject



18
19
20
21
22
# File 'lib/ecoportal/api/v2/s3/data.rb', line 18

def user_id
  return unless user_tmpdir

  user_tmpdir.split('uploads/').last
end

#x_amz_server_side_encryptionObject



10
11
12
# File 'lib/ecoportal/api/v2/s3/data.rb', line 10

def x_amz_server_side_encryption
  doc['x-amz-server-side-encryption']
end