Sha256: 4c3be6395f02d309e1190ec0c93d0abb65236806a8fa0de931c1ea3007dd513c
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module Riserva::Storage class ApplicationStorage def initialize(secrets = nil) @secrets = secrets || config_secrets end def title self.class.name.split('::').last.underscore end protected attr_reader :secrets def config_secrets Riserva::Config.read([:storage, title, :secrets].join('.')) end def time_to_keep value = Riserva::Config.read([:storage, title, :days_to_keep].join('.')) return unless value value.days end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riserva-0.1.7 | lib/riserva/storage/application_storage.rb |
riserva-0.1.6 | lib/riserva/storage/application_storage.rb |
riserva-0.1.5 | lib/riserva/storage/application_storage.rb |