Class: Nard::Appi::Client::Util::BaseNormalizer
- Inherits:
-
Object
- Object
- Nard::Appi::Client::Util::BaseNormalizer
- Includes:
- Module::ArgsNormalizer, Module::BooleanNormalizer, Module::OptionsNormalizer, Module::PathNormalizer
- Defined in:
- lib/nard/appi/client/util/base_normalizer.rb
Overview
API へ送る情報を処理するクラス(基底クラス)
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ BaseNormalizer
constructor
A new instance of BaseNormalizer.
- #to_a ⇒ Array
Constructor Details
#initialize(*args) ⇒ BaseNormalizer
Returns a new instance of BaseNormalizer.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/nard/appi/client/util/base_normalizer.rb', line 27 def initialize( *args ) args, = normalize_args( args ) @path = normalize_path( args ) = ( ) ( ) = ( ) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
38 39 40 |
# File 'lib/nard/appi/client/util/base_normalizer.rb', line 38 def end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
38 39 40 |
# File 'lib/nard/appi/client/util/base_normalizer.rb', line 38 def path @path end |
Class Method Details
.process(*args) ⇒ Object
23 24 25 |
# File 'lib/nard/appi/client/util/base_normalizer.rb', line 23 def self.process( *args ) new( *args ).to_a end |
Instance Method Details
#to_a ⇒ Array
41 42 43 |
# File 'lib/nard/appi/client/util/base_normalizer.rb', line 41 def to_a [ @path, , ].flatten end |