Class: JSONAPI::Request::QueryParamCollection::IncludeParam
- Inherits:
-
QueryParam
- Object
- Item
- NameValuePair
- QueryParam
- JSONAPI::Request::QueryParamCollection::IncludeParam
- Defined in:
- lib/easy/jsonapi/request/query_param_collection/include_param.rb
Overview
The include query param
Instance Attribute Summary
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(includes_arr) ⇒ IncludeParam
constructor
A new instance of IncludeParam.
-
#to_s ⇒ Object
to string.
Methods inherited from QueryParam
Methods inherited from NameValuePair
#name, #name=, #to_h, #value, #value=
Methods inherited from Item
Constructor Details
#initialize(includes_arr) ⇒ IncludeParam
Returns a new instance of IncludeParam.
15 16 17 18 |
# File 'lib/easy/jsonapi/request/query_param_collection/include_param.rb', line 15 def initialize(includes_arr) includes_hash_structure = store_includes(includes_arr) super('includes', includes_hash_structure) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JSONAPI::Item
Instance Method Details
#to_s ⇒ Object
to string
21 22 23 |
# File 'lib/easy/jsonapi/request/query_param_collection/include_param.rb', line 21 def to_s "include=#{stringify_includes_hash(value)}" end |