lib/cs/end_point.rb
# Update current end point object to CS. It will throw an exception if there is an error
#
# example for {Sensor} object:
#
#     sensor = client.sensors.find(1)
#     sensor.name = "new name"
#     sensor.update!
Update current end point object to CS. It will throw an exception if there is an error
example for {Sensor} object.


Update current end point object to CS . It will throw an exception if there is an error example for { Sensor } object .
def update!(options={})
      check_session!
      raise Error::ResourceIdError unless @id
      parameter = self.to_parameters
      parameter.merge!(options)
      res = session.put(put_url, parameter)
      if session.response_code != 200
        errors = session.errors rescue nil
        raise Error::ResponseError, errors
      end
      true
    end
def update! ( options = { } ) check_session! raise Error :: ResourceIdError unless @id parameter = self . to_parameters parameter . merge! ( options ) res = session . put ( put_url , parameter ) if session . response_code != 200 errors = session . errors rescue nil raise Error :: ResponseError , errors end true end
Update current end point object to CS.
Update current end point object to CS .
options
<not_specific>