Permalink
Browse files

added leased? method to listing

  • Loading branch information...
1 parent fd74b47 commit 7becb884f6bdcc06f5b70fca2a9a63531e054ea3 @malomalo malomalo committed Aug 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/mls/models/listing.rb
@@ -71,6 +71,10 @@ def sublease?
kind == 'sublease'
end
+ def leased?
+ !leased_on.nil?
+ end
+
def create
MLS.post('/listings', :listing => to_hash) do |code, response|
case code

0 comments on commit 7becb88

Please sign in to comment.