class Pohoda::Parsers::Ipm::ParameterSettingsType

Public Instance Methods

currency() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 27
def currency
  submodel_at(Typ::RefType, 'ipm:currency')
end
length() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 15
def length
  at 'ipm:length'
end
length_attributes() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 19
def length_attributes
  attributes_at 'ipm:length'
end
parameter_list() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 23
def parameter_list
  array_of_at(Ipm::ParameterListItemType, ['ipm:parameterList', 'ipm:parameterListItem'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 31
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:unit] = unit if has? 'ipm:unit'
  hash[:unit_attributes] = unit_attributes if has? 'ipm:unit'
  hash[:length] = length if has? 'ipm:length'
  hash[:length_attributes] = length_attributes if has? 'ipm:length'
  hash[:parameter_list] = parameter_list.map(&:to_h) if has? 'ipm:parameterList'
  hash[:currency] = currency.to_h if has? 'ipm:currency'

  hash
end
unit() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 7
def unit
  at 'ipm:unit'
end
unit_attributes() click to toggle source
# File lib/pohoda/parsers/ipm/parameter_settings_type.rb, line 11
def unit_attributes
  attributes_at 'ipm:unit'
end