class PIM::Layouts::CategoriesOverview
Public Class Methods
new(overview = nil)
click to toggle source
# File pim.rb, line 6661 def initialize overview = nil if not overview.nil? overview.each_pair do |k, v| self[k] = v if members.include?(k) end end end
Public Instance Methods
as_json()
click to toggle source
# File pim.rb, line 6669 def as_json hash = {} members.each do |m| next if not CATEGORIES_OVERVIEW_JSON_MEMBERS.include?(m) value = self[m] next if value.nil? key = PIM.camelize(m) hash[key] = self[m] end hash end