Class: Retab::WorkflowTableAggregationRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  function: :function,
  column: :column,
  alias: :alias
}.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) ⇒ WorkflowTableAggregationRequest

Returns a new instance of WorkflowTableAggregationRequest.



20
21
22
23
24
25
26
# File 'lib/retab/tables/workflow_table_aggregation_request.rb', line 20

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @function = hash[:function]
  @column = hash[:column]
  @alias = hash[:alias]
end

Instance Attribute Details

#aliasObject

Returns the value of attribute alias.



14
15
16
# File 'lib/retab/tables/workflow_table_aggregation_request.rb', line 14

def alias
  @alias
end

#columnObject

Returns the value of attribute column.



14
15
16
# File 'lib/retab/tables/workflow_table_aggregation_request.rb', line 14

def column
  @column
end

#functionObject

Returns the value of attribute function.



14
15
16
# File 'lib/retab/tables/workflow_table_aggregation_request.rb', line 14

def function
  @function
end