Class: AxHub::Data::DataTableSchema
- Inherits:
-
Object
- Object
- AxHub::Data::DataTableSchema
- Defined in:
- lib/axhub_sdk/data/dsl/schema.rb
Instance Attribute Summary collapse
-
#cols ⇒ Object
readonly
Returns the value of attribute cols.
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#validate ⇒ Object
readonly
Returns the value of attribute validate.
Instance Method Summary collapse
-
#initialize(table:, columns:, cols:, validate: nil) ⇒ DataTableSchema
constructor
A new instance of DataTableSchema.
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
#cols ⇒ Object (readonly)
Returns the value of attribute cols.
18 19 20 |
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18 def cols @cols end |
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
18 19 20 |
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18 def columns @columns end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
18 19 20 |
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18 def table @table end |
#validate ⇒ Object (readonly)
Returns the value of attribute validate.
18 19 20 |
# File 'lib/axhub_sdk/data/dsl/schema.rb', line 18 def validate @validate end |