# File lib/fission/lease.rb, line 95
    def self.find_by_mac_address(mac_address)
      all_response = all

      if all_response.successful?
        response = Response.new :code => 0
        leases = all_response.data.find_all { |l| l.mac_address == mac_address }
        response.data = leases.sort_by { |l| l.end }.last
      else
        response = all_response
      end

      response
    end