Class: TypedParams::HandlerSet
- Inherits:
-
Object
- Object
- TypedParams::HandlerSet
- Defined in:
- lib/typed_params/handler_set.rb
Instance Attribute Summary collapse
-
#deferred ⇒ Object
readonly
Returns the value of attribute deferred.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
- #deferred? ⇒ Boolean
-
#initialize ⇒ HandlerSet
constructor
A new instance of HandlerSet.
Constructor Details
#initialize ⇒ HandlerSet
Returns a new instance of HandlerSet.
11 12 13 14 15 |
# File 'lib/typed_params/handler_set.rb', line 11 def initialize @deferred = [] @params = NamespacedSet.new @query = NamespacedSet.new end |
Instance Attribute Details
#deferred ⇒ Object (readonly)
Returns the value of attribute deferred.
7 8 9 |
# File 'lib/typed_params/handler_set.rb', line 7 def deferred @deferred end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/typed_params/handler_set.rb', line 7 def params @params end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
7 8 9 |
# File 'lib/typed_params/handler_set.rb', line 7 def query @query end |
Instance Method Details
#deferred? ⇒ Boolean
17 |
# File 'lib/typed_params/handler_set.rb', line 17 def deferred? = @deferred.any? |