Method: Anoubis::Output::Delete#to_h

Defined in:
app/controllers/anoubis/output/delete.rb

#to_hHash

Generates hash representation of output class

Returns:

  • (Hash)

    hash representation of all data



25
26
27
28
29
30
# File 'app/controllers/anoubis/output/delete.rb', line 25

def to_h
  result = super.to_h
  result[:id] = self.id if self.id
  result[:errors] = self.errors if self.errors.length > 0
  result
end