Class: Datasets::Diamonds::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/datasets/diamonds.rb

Instance Attribute Summary collapse

Instance Attribute Details

#caratObject

Returns the value of attribute carat

Returns:

  • (Object)

    the current value of carat



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def carat
  @carat
end

#clarityObject

Returns the value of attribute clarity

Returns:

  • (Object)

    the current value of clarity



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def clarity
  @clarity
end

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def color
  @color
end

#cutObject

Returns the value of attribute cut

Returns:

  • (Object)

    the current value of cut



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def cut
  @cut
end

#depthObject

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def depth
  @depth
end

#priceObject

Returns the value of attribute price

Returns:

  • (Object)

    the current value of price



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def price
  @price
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def table
  @table
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def y
  @y
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



5
6
7
# File 'lib/datasets/diamonds.rb', line 5

def z
  @z
end