Class: Camille::Configuration

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.params_key_converterObject

Returns the value of attribute params_key_converter.



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

def params_key_converter
  @params_key_converter
end

.response_key_converterObject

Returns the value of attribute response_key_converter.



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

def response_key_converter
  @response_key_converter
end

.ts_headerObject

Returns the value of attribute ts_header.



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

def ts_header
  @ts_header
end

.ts_locationObject

Returns the value of attribute ts_location.



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

def ts_location
  @ts_location
end

Class Method Details

.load_default_configurationsObject



8
9
10
11
12
13
14
15
16
# File 'lib/camille/configuration.rb', line 8

def load_default_configurations
  self.response_key_converter = lambda do |string|
    string.camelize(:lower)
  end

  self.params_key_converter = lambda do |string|
    string.underscore
  end
end