Module: WinewooCore

Defined in:
lib/winewoo_core.rb,
lib/winewoo_core/engine.rb,
lib/winewoo_core/version.rb,
lib/winewoo_core/configuration.rb,
app/helpers/winewoo_core/application_helper.rb,
app/controllers/winewoo_core/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Models, UseCases Classes: ApplicationController, Configuration, Engine

Constant Summary collapse

VERSION =
"1.22.10"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



8
9
10
# File 'lib/winewoo_core.rb', line 8

def configuration
  @configuration
end

Class Method Details

.authorizerObject



15
# File 'lib/winewoo_core.rb', line 15

def authorizer ; self.configuration.authorizer end

.award_repoObject



31
# File 'lib/winewoo_core.rb', line 31

def award_repo ; self.configuration.award_repo end

.cellar_repoObject



16
# File 'lib/winewoo_core.rb', line 16

def cellar_repo ; self.configuration.cellar_repo end

.comments_repoObject



17
# File 'lib/winewoo_core.rb', line 17

def comments_repo ; self.configuration.comments_repo end

.configure {|configuration| ... } ⇒ Object

Yields:



39
40
41
# File 'lib/winewoo_core.rb', line 39

def configure
  yield(configuration)
end

.criterions_repoObject



18
# File 'lib/winewoo_core.rb', line 18

def criterions_repo ; self.configuration.criterions_repo end

.favorites_repoObject



19
# File 'lib/winewoo_core.rb', line 19

def favorites_repo ; self.configuration.favorites_repo end

.feed_repoObject



29
# File 'lib/winewoo_core.rb', line 29

def feed_repo ; self.configuration.feed_repo  end

.global_wine_data_repoObject



30
# File 'lib/winewoo_core.rb', line 30

def global_wine_data_repo ; self.configuration.global_wine_data_repo end

.hello!Object

This is a test method used to test the gem It returns the configured global variable hello_sentence.



14
# File 'lib/winewoo_core.rb', line 14

def hello! ; self.configuration.hello_sentence end

.history_repoObject



20
# File 'lib/winewoo_core.rb', line 20

def history_repo ; self.configuration.history_repo end

.log_repoObject



21
# File 'lib/winewoo_core.rb', line 21

def log_repo ; self.configuration.log_repo end

.producers_repoObject



22
# File 'lib/winewoo_core.rb', line 22

def producers_repo ; self.configuration.producers_repo end

.resetObject



44
45
46
# File 'lib/winewoo_core.rb', line 44

def reset
  @configuration = Configuration.new
end

.users_repoObject



23
# File 'lib/winewoo_core.rb', line 23

def users_repo ; self.configuration.users_repo end

.vintages_repoObject



24
# File 'lib/winewoo_core.rb', line 24

def vintages_repo ; self.configuration.vintages_repo end

.wines_repoObject



25
# File 'lib/winewoo_core.rb', line 25

def wines_repo ; self.configuration.wines_repo end

.winewoo_user_devices_repoObject



26
# File 'lib/winewoo_core.rb', line 26

def winewoo_user_devices_repo ; self.configuration.winewoo_user_devices_repo end

.winewoo_user_logs_repoObject



27
# File 'lib/winewoo_core.rb', line 27

def winewoo_user_logs_repo ; self.configuration.winewoo_user_logs_repo end

.winewoo_users_repoObject



28
# File 'lib/winewoo_core.rb', line 28

def winewoo_users_repo ; self.configuration.winewoo_users_repo end