Class: RailsSimpleParams::ConfigCheck::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_simple_params/config_check/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = options
  @type = type
  configuration_validation
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/rails_simple_params/config_check/base.rb', line 6

def options
  @options
end

#paramObject (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

#typeObject (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