class Nard::Appi::Client::Util::BaseNormalizer

API へ送る情報を処理するクラス(基底クラス)

Attributes

options[R]
path[R]

Public Class Methods

new( *args ) click to toggle source
# File lib/nard/appi/client/util/base_normalizer.rb, line 26
def initialize( *args )
  args, options = ArgsNormalizer.execute( *args )

  @path = normalize_path( args )

  options = normalize_keys_of_options( options )
  set_special_options( options )

  @options = normalize_values_of_options( options )
end
process( *args ) click to toggle source
# File lib/nard/appi/client/util/base_normalizer.rb, line 22
def self.process( *args )
  new( *args ).to_a
end

Public Instance Methods

to_a() click to toggle source

@return [Array]

# File lib/nard/appi/client/util/base_normalizer.rb, line 40
def to_a
  [ @path, @options, special_options ].flatten
end

Private Instance Methods

set_special_options( options ) click to toggle source
# File lib/nard/appi/client/util/base_normalizer.rb, line 46
def set_special_options( options )
  nil
end
special_options() click to toggle source
# File lib/nard/appi/client/util/base_normalizer.rb, line 50
def special_options
  []
end