app/controllers/anoubis/output/data.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.merge!({
                          count: self.count,
                          offset: self.offset,
                          limit: self.limit
                      })
        if self.sort
          result[:sort] = self.sort
          result[:order] = self.order
        end
        result.merge!({ fields: self.fields}) if self.fields
        result.merge!({ filter: self.filter}) if self.filter
        result.merge!({ data: self.data}) if self.data
        result[:sortable] = self.sortable if self.sortable
        result
      end
def to_h result = super . to_h return result if self . result != 0 result . merge! ( { count : self . count , offset : self . offset , limit : self . limit } ) if self . sort result [ :sort ] = self . sort result [ :order ] = self . order end result . merge! ( { fields : self . fields } ) if self . fields result . merge! ( { filter : self . filter } ) if self . filter result . merge! ( { data : self . data } ) if self . data result [ :sortable ] = self . sortable if self . sortable 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