Class: Iceberg::TruncateTransform

Inherits:
Transform
  • Object
show all
Defined in:
lib/iceberg/transforms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width) ⇒ TruncateTransform

Returns a new instance of TruncateTransform.



34
35
36
# File 'lib/iceberg/transforms.rb', line 34

def initialize(width)
  @width = width
end

Instance Attribute Details

#widthObject (readonly)

Returns the value of attribute width.



32
33
34
# File 'lib/iceberg/transforms.rb', line 32

def width
  @width
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
# File 'lib/iceberg/transforms.rb', line 38

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

#inspectObject



42
43
44
# File 'lib/iceberg/transforms.rb', line 42

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