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.



72
73
74
75
76
77
78
79
80
81
# File 'lib/shark/configuration.rb', line 72

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
  @subscription_service = SubscriptionService::Resource
  @survey_service = SurveyService::Resource
end

Instance Attribute Details

#asset_serviceObject (readonly)

Returns the value of attribute asset_service.



69
70
71
# File 'lib/shark/configuration.rb', line 69

def asset_service
  @asset_service
end

#cacheObject

Shark Configuration



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

def cache
  @cache
end

Returns the value of attribute consent_service.



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

def consent_service
  @consent_service
end

#contact_serviceObject (readonly)

Returns the value of attribute contact_service.



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

def contact_service
  @contact_service
end

#double_opt_inObject (readonly)

Returns the value of attribute double_opt_in.



64
65
66
# File 'lib/shark/configuration.rb', line 64

def double_opt_in
  @double_opt_in
end

#form_serviceObject (readonly)

Returns the value of attribute form_service.



65
66
67
# File 'lib/shark/configuration.rb', line 65

def form_service
  @form_service
end

#loggerObject

Shark Configuration



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

def logger
  @logger
end

#mailing_serviceObject (readonly)

Returns the value of attribute mailing_service.



70
71
72
# File 'lib/shark/configuration.rb', line 70

def mailing_service
  @mailing_service
end

#notification_serviceObject (readonly)

Returns the value of attribute notification_service.



67
68
69
# File 'lib/shark/configuration.rb', line 67

def notification_service
  @notification_service
end

#subscription_serviceObject (readonly)

Returns the value of attribute subscription_service.



68
69
70
# File 'lib/shark/configuration.rb', line 68

def subscription_service
  @subscription_service
end

#survey_serviceObject (readonly)

Returns the value of attribute survey_service.



66
67
68
# File 'lib/shark/configuration.rb', line 66

def survey_service
  @survey_service
end