Class: Ecoportal::API::V2::S3::Data
- Inherits:
-
Common::Content::DoubleModel
- Object
- Common::BaseModel
- Common::Content::DoubleModel
- Ecoportal::API::V2::S3::Data
- 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
Instance Method Summary collapse
Methods inherited from Common::Content::DoubleModel
Methods included from Common::Content::DoubleModel::Diffable
Methods included from Common::Content::Includer
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_id ⇒ Object
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_encryption ⇒ Object
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 |