Class: Shark::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shark/configuration.rb

Defined Under Namespace

Classes: Service

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_serviceObject (readonly)

Returns the value of attribute asset_service.



62
63
64
# File 'lib/shark/configuration.rb', line 62

def asset_service
  @asset_service
end

#cacheObject

Shark Configuration



55
56
57
# File 'lib/shark/configuration.rb', line 55

def cache
  @cache
end

Returns the value of attribute consent_service.



57
58
59
# File 'lib/shark/configuration.rb', line 57

def consent_service
  @consent_service
end

#contact_serviceObject (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_inObject (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_serviceObject (readonly)

Returns the value of attribute form_service.



59
60
61
# File 'lib/shark/configuration.rb', line 59

def form_service
  @form_service
end

#loggerObject

Shark Configuration



55
56
57
# File 'lib/shark/configuration.rb', line 55

def logger
  @logger
end

#mailing_serviceObject (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_serviceObject (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_serviceObject (readonly)

Returns the value of attribute survey_service.



60
61
62
# File 'lib/shark/configuration.rb', line 60

def survey_service
  @survey_service
end