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.



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_idObject

Returns the value of attribute access_id.



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

def access_id
  @access_id
end

#asset_serviceObject (readonly)

Returns the value of attribute asset_service.



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

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.



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

def consent_service
  @consent_service
end

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

Returns the value of attribute form_service.



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

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.



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

def mailing_service
  @mailing_service
end

#notification_serviceObject (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_keyObject

Returns the value of attribute secret_key.



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

def secret_key
  @secret_key
end

#survey_serviceObject (readonly)

Returns the value of attribute survey_service.



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

def survey_service
  @survey_service
end