class Pohoda::Parsers::Ctg::CategoryType
Public Instance Methods
description()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 31 def description at 'ctg:description' end
description_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 35 def description_attributes attributes_at 'ctg:description' end
displayed()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 47 def displayed at 'ctg:displayed' end
displayed_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 51 def displayed_attributes attributes_at 'ctg:displayed' end
id()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 15 def id at 'ctg:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 19 def id_attributes attributes_at 'ctg:id' end
internet_params()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 83 def internet_params submodel_at(Ctg::InternetParamsType, 'ctg:internetParams') end
mark_record()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 71 def mark_record at 'ctg:markRecord' end
mark_record_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 75 def mark_record_attributes attributes_at 'ctg:markRecord' end
name()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 23 def name at 'ctg:name' end
name_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 27 def name_attributes attributes_at 'ctg:name' end
note()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 63 def note at 'ctg:note' end
note_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 67 def note_attributes attributes_at 'ctg:note' end
parent_id()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 7 def parent_id at 'ctg:parentId' end
parent_id_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 11 def parent_id_attributes attributes_at 'ctg:parentId' end
picture()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 55 def picture at 'ctg:picture' end
picture_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 59 def picture_attributes attributes_at 'ctg:picture' end
sequence()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 39 def sequence at 'ctg:sequence' end
sequence_attributes()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 43 def sequence_attributes attributes_at 'ctg:sequence' end
sub_categories()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 79 def sub_categories array_of_at(Ctg::CategoryType, ['ctg:subCategories', 'ctg:category']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/ctg/category_type.rb, line 87 def to_h hash = {} hash[:attributes] = attributes hash[:parent_id] = parent_id if has? 'ctg:parentId' hash[:parent_id_attributes] = parent_id_attributes if has? 'ctg:parentId' hash[:id] = id if has? 'ctg:id' hash[:id_attributes] = id_attributes if has? 'ctg:id' hash[:name] = name if has? 'ctg:name' hash[:name_attributes] = name_attributes if has? 'ctg:name' hash[:description] = description if has? 'ctg:description' hash[:description_attributes] = description_attributes if has? 'ctg:description' hash[:sequence] = sequence if has? 'ctg:sequence' hash[:sequence_attributes] = sequence_attributes if has? 'ctg:sequence' hash[:displayed] = displayed if has? 'ctg:displayed' hash[:displayed_attributes] = displayed_attributes if has? 'ctg:displayed' hash[:picture] = picture if has? 'ctg:picture' hash[:picture_attributes] = picture_attributes if has? 'ctg:picture' hash[:note] = note if has? 'ctg:note' hash[:note_attributes] = note_attributes if has? 'ctg:note' hash[:mark_record] = mark_record if has? 'ctg:markRecord' hash[:mark_record_attributes] = mark_record_attributes if has? 'ctg:markRecord' hash[:sub_categories] = sub_categories.map(&:to_h) if has? 'ctg:subCategories' hash[:internet_params] = internet_params.to_h if has? 'ctg:internetParams' hash end