class Rubillow::Models::Postings
List of postings
Attributes
for_rent[RW]
@return [Array] postings with for rent status ({Models::Posting}).
for_sale_by_agent[RW]
@return [Array] postings with FSBO status ({Models::Posting}).
for_sale_by_owner[RW]
@return [Array] postings with FSBA status ({Models::Posting}).
make_me_move[RW]
@return [Array] postings with MakeMeMove status ({Models::Posting}).
region_id[RW]
@return [String] region id.
report_for_sale[RW]
@return [Array] postings with reporting status ({Models::Posting}).
Protected Instance Methods
parse()
click to toggle source
@private
Calls superclass method
Rubillow::Models::Base#parse
# File lib/rubillow/models/postings.rb, line 28 def parse super return if !success? @region_id = @parser.xpath('//regionId').text extract_links(@parser) @make_me_move = [] @parser.xpath('//response/makeMeMove/result').each do |elm| @make_me_move << Posting.new(elm.to_xml) end @for_sale_by_owner = [] @parser.xpath('//response/forSaleByOwner/result').each do |elm| @for_sale_by_owner << Posting.new(elm.to_xml) end @for_sale_by_agent = [] @parser.xpath('//response/forSaleByAgent/result').each do |elm| @for_sale_by_agent << Posting.new(elm.to_xml) end @report_for_sale = [] @parser.xpath('//response/reportForSale/result').each do |elm| @report_for_sale << Posting.new(elm.to_xml) end @for_rent = [] @parser.xpath('//response/forRent/result').each do |elm| @for_rent << Posting.new(elm.to_xml) end end