lib/rentlinx/modules/amenity_client_methods.rb
# Unposts all amenities for a unit or property by posting
# an empty list to the batch update endpoint.
#
# @param object [Rentlinx::Property, Rentlinx::Unit] the object
#               whos amenities should be unposted
Unposts all amenities for a unit or property by posting
an empty list to the batch update endpoint.
Unposts all amenities for a unit or property by posting an empty list to the batch update endpoint .
def unpost_amenities_for(object)
      case object
      when Rentlinx::Unit
        post_amenities_for_unit_id(object.unitID, [])
      when Rentlinx::Property
        post_amenities_for_property_id(object.propertyID, [])
      else
        raise TypeError, "Type not permitted: #{object.class}"
      end
    end
def unpost_amenities_for ( object ) case object when Rentlinx :: Unit post_amenities_for_unit_id ( object . unitID , [ ] ) when Rentlinx :: Property post_amenities_for_property_id ( object . propertyID , [ ] ) else raise TypeError , "Type not permitted: #{object.class}" end end
Unposts all amenities for a unit or property by posting
an empty list to the batch update endpoint.
Unposts all amenities for a unit or property by posting an empty list to the batch update endpoint .
object
the object whos amenities should be unposted
the object whos amenities should be unposted