Class: MoneyS3::Builders::ParametrKartaType

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseBuilder
Defined in:
lib/money_s3/builders/parametr_karta_type.rb

Instance Method Summary collapse

Instance Method Details

#builderObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/money_s3/builders/parametr_karta_type.rb', line 6

def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  if data.key? :parametr
    root << ParametrType.new('Parametr', data[:parametr]).builder
  end
  root << build_element('Poradi', data[:poradi], data[:poradi_attributes]) if data.key? :poradi
  root << build_element('Value', data[:value], data[:value_attributes]) if data.key? :value

  root
end