Class: Datasets::CaliforniaHousing::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/datasets/california-housing.rb

Instance Attribute Summary collapse

Instance Attribute Details

#householdsObject

Returns the value of attribute households

Returns:

  • (Object)

    the current value of households



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def households
  @households
end

#housing_median_ageObject

Returns the value of attribute housing_median_age

Returns:

  • (Object)

    the current value of housing_median_age



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def housing_median_age
  @housing_median_age
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def longitude
  @longitude
end

#median_house_valueObject

Returns the value of attribute median_house_value

Returns:

  • (Object)

    the current value of median_house_value



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def median_house_value
  @median_house_value
end

#median_incomeObject

Returns the value of attribute median_income

Returns:

  • (Object)

    the current value of median_income



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def median_income
  @median_income
end

#populationObject

Returns the value of attribute population

Returns:

  • (Object)

    the current value of population



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def population
  @population
end

#total_bedroomsObject

Returns the value of attribute total_bedrooms

Returns:

  • (Object)

    the current value of total_bedrooms



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def total_bedrooms
  @total_bedrooms
end

#total_roomsObject

Returns the value of attribute total_rooms

Returns:

  • (Object)

    the current value of total_rooms



6
7
8
# File 'lib/datasets/california-housing.rb', line 6

def total_rooms
  @total_rooms
end