Class: Retab::WorkflowTableSearchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowTableSearchRequest
- Defined in:
- lib/retab/tables/workflow_table_search_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ query: :query, columns: :columns }.freeze
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#query ⇒ Object
Returns the value of attribute query.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowTableSearchRequest
constructor
A new instance of WorkflowTableSearchRequest.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowTableSearchRequest
Returns a new instance of WorkflowTableSearchRequest.
18 19 20 21 22 23 |
# File 'lib/retab/tables/workflow_table_search_request.rb', line 18 def initialize(json) super() hash = self.class.normalize(json) @query = hash[:query] @columns = (hash[:columns] || []) end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
13 14 15 |
# File 'lib/retab/tables/workflow_table_search_request.rb', line 13 def columns @columns end |
#query ⇒ Object
Returns the value of attribute query.
13 14 15 |
# File 'lib/retab/tables/workflow_table_search_request.rb', line 13 def query @query end |