Module: S3Index::Accessor

Extended by:
ActiveSupport::Concern
Defined in:
lib/s3_index/accessor.rb

Overview

Adds S3 backed data accessors to any ActiveRecord model

## Example: “‘ class Foo < ActiveRecord::Base

include S3Index::Accessor

s3_index_accessor :s3_data,
  cache_dir: '/tmp'
  bucket: 'foo',
  s3_resource: Aws::S3::Resource.new

end “‘