app/controllers/anoubis/output/edit.rb
##
# Generates hash representation of output class
# @return [Hash] hash representation of all data
Generates hash representation of output class
Generates hash representation of output class
def to_h
        result = super.to_h
        return result if self.result != 0
        result[:title] = self.title if self.title != ''
        result[:fields] = self.fields if self.fields
        result[:action] = self.action if self.action != ''
        result.merge!({
                          values: self.values,
                          options: self.options_to_json(self.options)
                      })
        result
      end
def to_h result = super . to_h return result if self . result != 0 result [ :title ] = self . title if self . title != '' result [ :fields ] = self . fields if self . fields result [ :action ] = self . action if self . action != '' result . merge! ( { values : self . values , options : self . options_to_json ( self . options ) } ) result end
Generates hash representation of output class
Generates hash representation of output class
hash representation of all data
hash representation of all data
Hash