Class: Datasets::Diamonds::Record

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

Instance Attribute Summary collapse

Instance Attribute Details

#carat ⇒ Object

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

#clarity ⇒ Object

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

#color ⇒ Object

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

#cut ⇒ Object

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

#depth ⇒ Object

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

#price ⇒ Object

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

#table ⇒ Object

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

#x ⇒ Object

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

#y ⇒ Object

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

#z ⇒ Object

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