Class: Shark::Configuration
- Inherits:
-
Object
- Object
- Shark::Configuration
- Defined in:
- lib/shark/configuration.rb
Defined Under Namespace
Classes: Service
Instance Attribute Summary collapse
-
#asset_service ⇒ Object
readonly
Returns the value of attribute asset_service.
-
#cache ⇒ Object
Shark Configuration.
-
#consent_service ⇒ Object
readonly
Returns the value of attribute consent_service.
-
#contact_service ⇒ Object
readonly
Returns the value of attribute contact_service.
-
#double_opt_in ⇒ Object
readonly
Returns the value of attribute double_opt_in.
-
#form_service ⇒ Object
readonly
Returns the value of attribute form_service.
-
#logger ⇒ Object
Shark Configuration.
-
#mailing_service ⇒ Object
readonly
Returns the value of attribute mailing_service.
-
#notification_service ⇒ Object
readonly
Returns the value of attribute notification_service.
-
#survey_service ⇒ Object
readonly
Returns the value of attribute survey_service.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
65 66 67 68 69 70 71 72 73 |
# File 'lib/shark/configuration.rb', line 65 def initialize @asset_service = AssetService::Resource @contact_service = ContactService::Resource @double_opt_in = DoubleOptIn::Resource @form_service = Service.new @mailing_service = Service.new @notification_service = NotificationService::Resource @survey_service = SurveyService::Resource end |
Instance Attribute Details
#asset_service ⇒ Object (readonly)
Returns the value of attribute asset_service.
62 63 64 |
# File 'lib/shark/configuration.rb', line 62 def asset_service @asset_service end |
#cache ⇒ Object
Shark Configuration
55 56 57 |
# File 'lib/shark/configuration.rb', line 55 def cache @cache end |
#consent_service ⇒ Object (readonly)
Returns the value of attribute consent_service.
57 58 59 |
# File 'lib/shark/configuration.rb', line 57 def @consent_service end |
#contact_service ⇒ Object (readonly)
Returns the value of attribute contact_service.
56 57 58 |
# File 'lib/shark/configuration.rb', line 56 def contact_service @contact_service end |
#double_opt_in ⇒ Object (readonly)
Returns the value of attribute double_opt_in.
58 59 60 |
# File 'lib/shark/configuration.rb', line 58 def double_opt_in @double_opt_in end |
#form_service ⇒ Object (readonly)
Returns the value of attribute form_service.
59 60 61 |
# File 'lib/shark/configuration.rb', line 59 def form_service @form_service end |
#logger ⇒ Object
Shark Configuration
55 56 57 |
# File 'lib/shark/configuration.rb', line 55 def logger @logger end |
#mailing_service ⇒ Object (readonly)
Returns the value of attribute mailing_service.
63 64 65 |
# File 'lib/shark/configuration.rb', line 63 def mailing_service @mailing_service end |
#notification_service ⇒ Object (readonly)
Returns the value of attribute notification_service.
61 62 63 |
# File 'lib/shark/configuration.rb', line 61 def notification_service @notification_service end |
#survey_service ⇒ Object (readonly)
Returns the value of attribute survey_service.
60 61 62 |
# File 'lib/shark/configuration.rb', line 60 def survey_service @survey_service end |