Module: Jpmobile::Encoding

Defined in:
lib/jpmobile/encoding.rb

Instance Method Summary collapse

Instance Method Details

#parametersObject


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/jpmobile/encoding.rb', line 5

def parameters
  return @parameters if @jpmobile_params_converted

  # load params
  @parameters = super
  # 変換
  @parameters = Jpmobile::Util.deep_convert(@parameters) do |value|
    value = Jpmobile::Util.utf8(value)
  end

  @jpmobile_params_converted = true
  if @parameters.respond_to?(:with_indifferent_access)
    @parameters = @parameters.with_indifferent_access
  end

  @parameters
end