Class: Riserva::Storage::ApplicationStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/riserva/storage/application_storage.rb

Direct Known Subclasses

Dropbox, GoogleDrive

Instance Method Summary collapse

Constructor Details

#initialize(secrets = nil) ⇒ ApplicationStorage

Returns a new instance of ApplicationStorage.



5
6
7
# File 'lib/riserva/storage/application_storage.rb', line 5

def initialize(secrets = nil)
  @secrets = secrets || config_secrets
end

Instance Method Details

#titleObject



9
10
11
# File 'lib/riserva/storage/application_storage.rb', line 9

def title
  self.class.name.split('::').last.underscore
end