Class: NormalizeOptions
- Inherits:
-
Object
- Object
- NormalizeOptions
- Defined in:
- lib/service_api/normalize_options.rb,
lib/service_api/normalize_options/base.rb,
lib/service_api/normalize_options/hash_with_mapper_hash.rb,
lib/service_api/normalize_options/normal_with_mapper_hash.rb,
lib/service_api/normalize_options/normal_with_mapper_array.rb
Defined Under Namespace
Classes: Base, HashWithMapperHash, NormalWithMapperArray, NormalWithMapperHash
Instance Attribute Summary collapse
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(mapper, *options) ⇒ NormalizeOptions
constructor
A new instance of NormalizeOptions.
Constructor Details
#initialize(mapper, *options) ⇒ NormalizeOptions
Returns a new instance of NormalizeOptions.
9 10 11 12 |
# File 'lib/service_api/normalize_options.rb', line 9 def initialize(mapper, *) @mapper = mapper @options = end |
Instance Attribute Details
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
7 8 9 |
# File 'lib/service_api/normalize_options.rb', line 7 def mapper @mapper end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/service_api/normalize_options.rb', line 7 def @options end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/service_api/normalize_options.rb', line 14 def call if elsif arguments_count_corrent? else raise ArgumentError end end |