module BinData::AcceptedParametersPlugin
Public Instance Methods
default_parameters(*args)
click to toggle source
Default parameters can be overridden when instantiating a data object.
# File lib/bindata/params.rb, line 16 def default_parameters(*args) accepted_parameters.default(*args) end
Also aliased as: default_parameter
mandatory_parameters(*args)
click to toggle source
Mandatory parameters must be present when instantiating a data object.
# File lib/bindata/params.rb, line 6 def mandatory_parameters(*args) accepted_parameters.mandatory(*args) end
Also aliased as: mandatory_parameter
mutually_exclusive_parameters(*args)
click to toggle source
Mutually exclusive parameters may not all be present when instantiating a data object.
# File lib/bindata/params.rb, line 22 def mutually_exclusive_parameters(*args) accepted_parameters.mutually_exclusive(*args) end
optional_parameters(*args)
click to toggle source
Optional parameters may be present when instantiating a data object.
# File lib/bindata/params.rb, line 11 def optional_parameters(*args) accepted_parameters.optional(*args) end
Also aliased as: optional_parameter