Class: MLS::Listing::Parser
Instance Attribute Summary
Attributes inherited from Parser
#object
Instance Method Summary
collapse
Methods inherited from Parser
build, #build, build_collection, collection_root_element, extract_attributes, #extract_attributes, #initialize, #method_missing, object_class, parse, #parse, parse_collection, root_element, update, #update_attributes
Constructor Details
This class inherits a constructor from MLS::Parser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class MLS::Parser
Instance Method Details
#address=(address) ⇒ Object
286
287
288
|
# File 'lib/mls/models/listing.rb', line 286
def address=(address)
@object.address = MLS::Address::Parser.build(address)
end
|
#agents=(agents) ⇒ Object
290
291
292
|
# File 'lib/mls/models/listing.rb', line 290
def agents=(agents)
@object.agents = agents.map {|a| MLS::Account::Parser.build(a) }
end
|
#floorplan=(floorplan) ⇒ Object
278
279
280
|
# File 'lib/mls/models/listing.rb', line 278
def floorplan=(floorplan)
@object.floorplan = MLS::Floorplan::Parser.build(floorplan)
end
|
#flyer=(flyer) ⇒ Object
282
283
284
|
# File 'lib/mls/models/listing.rb', line 282
def flyer=(flyer)
@object.flyer = MLS::Flyer::Parser.build(flyer)
end
|
#photos=(photos) ⇒ Object
268
269
270
|
# File 'lib/mls/models/listing.rb', line 268
def photos=(photos)
@object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
end
|
#videos=(videos) ⇒ Object
272
273
274
275
276
|
# File 'lib/mls/models/listing.rb', line 272
def videos=(videos)
@object.videos = videos.map do |video|
MLS::Video::Parser.build(video)
end
end
|