Class: Iceberg::Schema
- Inherits:
-
Object
- Object
- Iceberg::Schema
- Defined in:
- lib/iceberg/schema.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#schema_id ⇒ Object
readonly
Returns the value of attribute schema_id.
Instance Method Summary collapse
-
#initialize(fields, schema_id: nil) ⇒ Schema
constructor
A new instance of Schema.
Constructor Details
#initialize(fields, schema_id: nil) ⇒ Schema
Returns a new instance of Schema.
5 6 7 8 |
# File 'lib/iceberg/schema.rb', line 5 def initialize(fields, schema_id: nil) @fields = fields @schema_id = schema_id end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
3 4 5 |
# File 'lib/iceberg/schema.rb', line 3 def fields @fields end |
#schema_id ⇒ Object (readonly)
Returns the value of attribute schema_id.
3 4 5 |
# File 'lib/iceberg/schema.rb', line 3 def schema_id @schema_id end |