app/controllers/anoubis/output/menu.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[:menu] = []
        self.items.each { |item|
          result[:menu].push(item.to_h) if item
        }
        result[:user] = self.user
        result
      end
def to_h result = super . to_h return result if self . result != 0 result [ :menu ] = [ ] self . items . each { | item | result [ :menu ] . push ( item . to_h ) if item } result [ :user ] = self . user 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