Class: Retab::BodyCreateTableV1TablesPost

Inherits:
Types::BaseModel show all
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

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) ⇒ 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_overridesObject

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

#fileObject

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

#nameObject

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