Class: MoneyS3::Builders::EShopInfo
- Inherits:
-
Object
- Object
- MoneyS3::Builders::EShopInfo
- Includes:
- ParserCore::BaseBuilder
- Defined in:
- lib/money_s3/builders/e_shop_info.rb
Instance Method Summary collapse
Instance Method Details
#builder ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# 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 |