Class: Retab::WorkflowTableSearchRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/tables/workflow_table_search_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  query: :query,
  columns: :columns
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#columnsObject

Returns the value of attribute columns.



13
14
15
# File 'lib/retab/tables/workflow_table_search_request.rb', line 13

def columns
  @columns
end

#queryObject

Returns the value of attribute query.



13
14
15
# File 'lib/retab/tables/workflow_table_search_request.rb', line 13

def query
  @query
end