module Rubillow::Models::PropertyBasics

Common data for responses containing property information

Attributes

bathrooms[RW]

@return [String] number of bathrooms

bedrooms[RW]

@return [String] number of bedrooms

finished_square_feet[RW]

@return [String] Size of property in square feet

lot_size_square_feet[RW]

@return [String] Size of lot in square feet

total_rooms[RW]

@return [String] total number of rooms

use_code[RW]

@return [String] property type

Protected Instance Methods

extract_property_basics(xml) click to toggle source

@private

# File lib/rubillow/models/property_basics.rb, line 26
def extract_property_basics(xml)
  @use_code = xpath_if_present('//useCode', :text, xml, "")
  @lot_size_square_feet = xpath_if_present('//lotSizeSqFt', :text, xml, "")
  @finished_square_feet = xpath_if_present('//finishedSqFt', :text, xml, "")
  @bathrooms = xpath_if_present('//bathrooms', :text, xml, "")
  @bedrooms = xpath_if_present('//bedrooms', :text, xml, "")
  @total_rooms = xpath_if_present('//totalRooms', :text, xml, "")
end