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