Sha256: 962f3ad48f6a5161b42a5b595aefecf252a0db754bf140e880be1df88d17656c
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
require 'money_s3/builders/base_builder' require 'money_s3/builders/vlajka_type' module MoneyS3 module Builders class Vlajky include BaseBuilder def builder root = Ox::Element.new(name) if data.respond_to? :attributes data.attributes.each { |k, v| root[k] = v } end if data.key? :global root << VlajkaType.new('Global', data[:global]).builder end if data.key? :user root << VlajkaType.new('User', data[:user]).builder end root end end end end
Version data entries
5 entries across 5 versions & 1 rubygems