module VLC360::APIOperations::Save

Public Instance Methods

save() click to toggle source
# File lib/vlc360/api_operations/save.rb, line 4
def save
  clear_errors

  process_response(
    self.class.client.request(
      self.class::SAVE_URL,
      to_hash.deep_rekey do |key|
        if self.class.rekey_attributes&.include?(key)
          self.class.rekey_attributes[key].call(key)
        else
          key.to_s.camelcase(:upper)
        end
      end
    )
  )
end