Class: Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
# File 'lib/sojourn/configuration.rb', line 10

def initialize
  set_defaults
end

Instance Attribute Details

#campaign_paramsObject

Returns the value of attribute campaign_params.



4
5
6
# File 'lib/sojourn/configuration.rb', line 4

def campaign_params
  @campaign_params
end

Returns the value of attribute cookie_name.



6
7
8
# File 'lib/sojourn/configuration.rb', line 6

def cookie_name
  @cookie_name
end

#default_properties_blockObject

Returns the value of attribute default_properties_block.



8
9
10
# File 'lib/sojourn/configuration.rb', line 8

def default_properties_block
  @default_properties_block
end

#session_storeObject

Returns the value of attribute session_store.



5
6
7
# File 'lib/sojourn/configuration.rb', line 5

def session_store
  @session_store
end

#tracking_enabledObject

Returns the value of attribute tracking_enabled.



7
8
9
# File 'lib/sojourn/configuration.rb', line 7

def tracking_enabled
  @tracking_enabled
end

Instance Method Details

#default_properties(&block) ⇒ Object



14
15
16
# File 'lib/sojourn/configuration.rb', line 14

def default_properties(&block)
  self.default_properties_block = block
end