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
287
288
289
|
# File 'lib/mls/models/listing.rb', line 287
def address=(address)
@object.address = MLS::Address::Parser.build(address)
end
|
#agents=(agents) ⇒ Object
291
292
293
|
# File 'lib/mls/models/listing.rb', line 291
def agents=(agents)
@object.agents = agents.map {|a| MLS::Account::Parser.build(a) }
end
|
#floorplan=(floorplan) ⇒ Object
279
280
281
|
# File 'lib/mls/models/listing.rb', line 279
def floorplan=(floorplan)
@object.floorplan = MLS::Floorplan::Parser.build(floorplan)
end
|
#flyer=(flyer) ⇒ Object
283
284
285
|
# File 'lib/mls/models/listing.rb', line 283
def flyer=(flyer)
@object.flyer = MLS::Flyer::Parser.build(flyer)
end
|
#photos=(photos) ⇒ Object
269
270
271
|
# File 'lib/mls/models/listing.rb', line 269
def photos=(photos)
@object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
end
|
#videos=(videos) ⇒ Object
273
274
275
276
277
|
# File 'lib/mls/models/listing.rb', line 273
def videos=(videos)
@object.videos = videos.map do |video|
MLS::Video::Parser.build(video)
end
end
|