Module: VLC360::APIOperations::Save
Instance Method Summary collapse
Instance Method Details
#save ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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 |