lib/mls/models/listing.rb in mls-0.5.0 vs lib/mls/models/listing.rb in mls-0.5.1

- old
+ new

@@ -145,14 +145,14 @@ # Examples: # # #!ruby # listing = MLS::Listing.find(@id) # info => {:company => 'name', :population => 10, :funding => 'string', :move_id => '2012-09-12'} - # listing.request_tour('name', 'email@address.com', info) # => #<MLS::TourRequest> + # listing.request_tour('name', 'email@address.com', info) # => #<MLS::Tour> # - # listing.request_tour('', 'emai', info) # => #<MLS::TourRequest> will have errors on account + # listing.request_tour('', 'emai', info) # => #<MLS::Tour> will have errors on account def request_tour(account, tour={}) - MLS::TourRequest.create(id, account, tour) + MLS::Tour.create(id, account, tour) end def create MLS.post('/listings', {:listing => to_hash}, 201, 400) do |response, code|