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



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



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



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

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute 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



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



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

def median_income
  @median_income
end

#populationObject

Returns the value of attribute 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



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



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

def total_rooms
  @total_rooms
end