lib/rentlinx/modules/link_client_methods.rb
# Unposts all links for unit or property by posting an empty
# array to the batch update endpoint
#
# @param object [Rentlinx::Property, Rentlinx::Unit] the object whos
#               links should be unposted
Unposts all links for unit or property by posting an empty
array to the batch update endpoint
Unposts all links for unit or property by posting an empty array to the batch update endpoint
def unpost_links_for(object)
      case object
      when Rentlinx::Unit
        post_links_for_unit_id(object.unitID, [])
      when Rentlinx::Property
        post_links_for_property_id(object.propertyID, [])
      else
        raise TypeError, 'Type not permitted: #{object.class}'
      end
    end
def unpost_links_for ( object ) case object when Rentlinx :: Unit post_links_for_unit_id ( object . unitID , [ ] ) when Rentlinx :: Property post_links_for_property_id ( object . propertyID , [ ] ) else raise TypeError , 'Type not permitted: #{object.class}' end end
Unposts all links for unit or property by posting an empty
array to the batch update endpoint
Unposts all links for unit or property by posting an empty array to the batch update endpoint
object
the object whos links should be unposted
the object whos links should be unposted