class Pohoda::Parsers::Ctg::CategoryDetailType

Public Instance Methods

category() click to toggle source
# File lib/pohoda/parsers/ctg/category_detail_type.rb, line 7
def category
  submodel_at(Ctg::CategoryType, 'ctg:category')
end
to_h() click to toggle source
# File lib/pohoda/parsers/ctg/category_detail_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:category] = category.to_h if has? 'ctg:category'

  hash
end