class Pohoda::Parsers::Prm::ParameterType

Public Instance Methods

form_parameter() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 11
def form_parameter
  array_of_at(Prm::ParameterDefType, ['prm:formParameter', 'prm:parameterDef'])
end
item_parameter() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 15
def item_parameter
  array_of_at(Prm::ParameterDefType, ['prm:itemParameter', 'prm:parameterDef'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 35
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:user_agenda_def] = user_agenda_def.to_h if has? 'prm:userAgendaDef'
  hash[:form_parameter] = form_parameter.map(&:to_h) if has? 'prm:formParameter'
  hash[:item_parameter] = item_parameter.map(&:to_h) if has? 'prm:itemParameter'
  hash[:user_form] = user_form.map(&:to_h) if has? 'prm:userForm'
  hash[:user_code] = user_code if has? 'prm:userCode'
  hash[:user_code_attributes] = user_code_attributes if has? 'prm:userCode'
  hash[:user_code_part] = user_code_part.to_h if has? 'prm:userCodePart'

  hash
end
user_agenda_def() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 7
def user_agenda_def
  submodel_at(Prm::UserAgendaDefType, 'prm:userAgendaDef')
end
user_code() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 23
def user_code
  at 'prm:userCode'
end
user_code_attributes() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 27
def user_code_attributes
  attributes_at 'prm:userCode'
end
user_code_part() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 31
def user_code_part
  submodel_at(Prm::UserCodePartType, 'prm:userCodePart')
end
user_form() click to toggle source
# File lib/pohoda/parsers/prm/parameter_type.rb, line 19
def user_form
  array_of_at(Prm::FormItemListType, ['prm:userForm'])
end