Class: Iceberg::StructType

Inherits:
Type
  • Object
show all
Defined in:
lib/iceberg/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*fields) ⇒ StructType

Returns a new instance of StructType.



92
93
94
# File 'lib/iceberg/types.rb', line 92

def initialize(*fields)
  @fields = fields
end

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



90
91
92
# File 'lib/iceberg/types.rb', line 90

def fields
  @fields
end

Instance Method Details

#==(other) ⇒ Object



96
97
98
# File 'lib/iceberg/types.rb', line 96

def ==(other)
  other.is_a?(self.class) && other.fields == @fields
end

#inspectObject



100
101
102
# File 'lib/iceberg/types.rb', line 100

def inspect
  "#<#{self.class.name} fields=#{@fields.inspect}>"
end