Class: Shark::Configuration
- Inherits:
-
Object
- Object
- Shark::Configuration
- Defined in:
- lib/shark/configuration.rb
Defined Under Namespace
Classes: Service
Instance Attribute Summary collapse
-
#access_id ⇒ Object
Returns the value of attribute access_id.
-
#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.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#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.
66 67 68 69 70 71 72 73 74 |
# File 'lib/shark/configuration.rb', line 66 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
#access_id ⇒ Object
Returns the value of attribute access_id.
56 57 58 |
# File 'lib/shark/configuration.rb', line 56 def access_id @access_id end |
#asset_service ⇒ Object (readonly)
Returns the value of attribute asset_service.
63 64 65 |
# File 'lib/shark/configuration.rb', line 63 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.
58 59 60 |
# File 'lib/shark/configuration.rb', line 58 def @consent_service end |
#contact_service ⇒ Object (readonly)
Returns the value of attribute contact_service.
57 58 59 |
# File 'lib/shark/configuration.rb', line 57 def contact_service @contact_service end |
#double_opt_in ⇒ Object (readonly)
Returns the value of attribute double_opt_in.
59 60 61 |
# File 'lib/shark/configuration.rb', line 59 def double_opt_in @double_opt_in end |
#form_service ⇒ Object (readonly)
Returns the value of attribute form_service.
60 61 62 |
# File 'lib/shark/configuration.rb', line 60 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.
64 65 66 |
# File 'lib/shark/configuration.rb', line 64 def mailing_service @mailing_service end |
#notification_service ⇒ Object (readonly)
Returns the value of attribute notification_service.
62 63 64 |
# File 'lib/shark/configuration.rb', line 62 def notification_service @notification_service end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
56 57 58 |
# File 'lib/shark/configuration.rb', line 56 def secret_key @secret_key end |
#survey_service ⇒ Object (readonly)
Returns the value of attribute survey_service.
61 62 63 |
# File 'lib/shark/configuration.rb', line 61 def survey_service @survey_service end |