Class: AxHub::Data::DataTableSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/axhub_sdk/data/dsl/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table:, columns:, cols:, validate: nil) ⇒ DataTableSchema

Returns a new instance of DataTableSchema.



20
21
22
23
24
25
26
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 20

def initialize(table:, columns:, cols:, validate: nil)
  @table = table
  @columns = columns
  @cols = cols
  @validate = validate
  freeze
end

Instance Attribute Details

#colsObject (readonly)

Returns the value of attribute cols.



18
19
20
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18

def cols
  @cols
end

#columnsObject (readonly)

Returns the value of attribute columns.



18
19
20
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18

def columns
  @columns
end

#tableObject (readonly)

Returns the value of attribute table.



18
19
20
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18

def table
  @table
end

#validateObject (readonly)

Returns the value of attribute validate.



18
19
20
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18

def validate
  @validate
end