class MoneyS3::Builders::EShopInfo

Public Instance Methods

builder() click to toggle source
# File lib/money_s3/builders/e_shop_info.rb, line 6
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  root << build_element('eShopID', data[:e_shop_id], data[:e_shop_id_attributes]) if data.key? :e_shop_id
  root << build_element('eShopName', data[:e_shop_name], data[:e_shop_name_attributes]) if data.key? :e_shop_name
  root << build_element('eSaleID', data[:e_sale_id], data[:e_sale_id_attributes]) if data.key? :e_sale_id

  root
end