Class: RailsSimpleParams::ConfigCheck::Base
- Inherits:
-
Object
- Object
- RailsSimpleParams::ConfigCheck::Base
- Defined in:
- lib/rails_simple_params/config_check/base.rb
Direct Known Subclasses
ArrayParam, BigDecimalParam, BooleanParam, FloatParam, HashParam, IntegerParam, StringParam, TimeParam
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(param:, type:, options: nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(param:, type:, options: nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 |
# File 'lib/rails_simple_params/config_check/base.rb', line 8 def initialize(param:, type:, options: nil) @param = param @options = @type = type configuration_validation end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/rails_simple_params/config_check/base.rb', line 6 def @options end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
6 7 8 |
# File 'lib/rails_simple_params/config_check/base.rb', line 6 def param @param end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/rails_simple_params/config_check/base.rb', line 6 def type @type end |