Class: Datasets::Iris::Record

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

Instance Attribute Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/datasets/iris.rb', line 7

def label
  @label
end

#petal_lengthObject

Returns the value of attribute petal_length

Returns:

  • (Object)

    the current value of petal_length



7
8
9
# File 'lib/datasets/iris.rb', line 7

def petal_length
  @petal_length
end

#petal_widthObject

Returns the value of attribute petal_width

Returns:

  • (Object)

    the current value of petal_width



7
8
9
# File 'lib/datasets/iris.rb', line 7

def petal_width
  @petal_width
end

#sepal_lengthObject

Returns the value of attribute sepal_length

Returns:

  • (Object)

    the current value of sepal_length



7
8
9
# File 'lib/datasets/iris.rb', line 7

def sepal_length
  @sepal_length
end

#sepal_widthObject

Returns the value of attribute sepal_width

Returns:

  • (Object)

    the current value of sepal_width



7
8
9
# File 'lib/datasets/iris.rb', line 7

def sepal_width
  @sepal_width
end