Class: RailsParam::Coercion::VirtualParam
- Inherits:
-
Object
- Object
- RailsParam::Coercion::VirtualParam
- Defined in:
- lib/rails_param/coercion/virtual_param.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
- #coerce ⇒ Object
-
#initialize(param:, options: nil, type: nil) ⇒ VirtualParam
constructor
A new instance of VirtualParam.
Constructor Details
#initialize(param:, options: nil, type: nil) ⇒ VirtualParam
Returns a new instance of VirtualParam.
6 7 8 9 10 11 |
# File 'lib/rails_param/coercion/virtual_param.rb', line 6 def initialize(param:, options: nil, type: nil) @param = param @options = @type = type argument_validation end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/rails_param/coercion/virtual_param.rb', line 4 def @options end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
4 5 6 |
# File 'lib/rails_param/coercion/virtual_param.rb', line 4 def param @param end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/rails_param/coercion/virtual_param.rb', line 4 def type @type end |
Instance Method Details
#coerce ⇒ Object
13 14 15 |
# File 'lib/rails_param/coercion/virtual_param.rb', line 13 def coerce nil end |