lib/rentlinx/client.rb
# Pushes an object's attributes out to Rentlinx
#
# @param object [Rentlinx::Base] the object to be posted
Pushes an object's attributes out to Rentlinx
Pushes an object ' s attributes out to Rentlinx
def post(object)
      raise Rentlinx::InvalidObject, object if object.respond_to?(:valid?) && !object.valid?
      case object
      when Rentlinx::Company
        post_company(object)
      when Rentlinx::Property
        post_property(object)
      when Rentlinx::Unit
        post_unit(object)
      when Rentlinx::Lead
        post_lead(object)
      else
        raise TypeError, "Type not permitted: #{object.class}"
      end
    end
def post ( object ) raise Rentlinx :: InvalidObject , object if object . respond_to? ( :valid? ) && ! object . valid? case object when Rentlinx :: Company post_company ( object ) when Rentlinx :: Property post_property ( object ) when Rentlinx :: Unit post_unit ( object ) when Rentlinx :: Lead post_lead ( object ) else raise TypeError , "Type not permitted: #{object.class}" end end
Pushes an object's attributes out to Rentlinx
Pushes an object ' s attributes out to Rentlinx
object
the object to be posted
the object to be posted