Class: OpenapiParameters::Unpackers::MatrixArray
- Inherits:
-
Data
- Object
- Data
- OpenapiParameters::Unpackers::MatrixArray
- Defined in:
- lib/openapi_parameters/unpackers.rb
Instance Attribute Summary collapse
-
#explode ⇒ Object
readonly
Returns the value of attribute explode.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#explode ⇒ Object (readonly)
Returns the value of attribute explode
37 38 39 |
# File 'lib/openapi_parameters/unpackers.rb', line 37 def explode @explode end |
#name ⇒ Object (readonly)
Returns the value of attribute name
37 38 39 |
# File 'lib/openapi_parameters/unpackers.rb', line 37 def name @name end |
Instance Method Details
#call(value) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/openapi_parameters/unpackers.rb', line 38 def call(value) return value if value.is_a?(::Array) return value if value.empty? result = Rack::Utils.parse_query(value, ';')[name] explode ? result : result.split(',') end |