def set(name, contents = '', type = 500)
      sd = @client.sd.update(name, contents)
      if sd.is_a?(Hash) && (sd["errorCode"] == -22) # doesn't exist
        sd = @client.sd.create(name, contents)
      end
      sd
    end
def set(name, contents = '', type = 500)
      sd = @client.sd.update(name, contents)
      if sd.is_a?(Hash) && (sd["errorCode"] == -22) # doesn't exist
        sd = @client.sd.create(name, contents)
      end
      sd
    end
create or update