Sha256: 2269f349f310924f95476c322899859a857b5d0729546fad01b97f6b6624e44f
Contents?: true
Size: 514 Bytes
Versions: 15
Compression:
Stored size: 514 Bytes
Contents
module CorreiosSigep module Models class SRO attr_accessor :collect_number, :type def initialize(options={}) @collect_number = options[:collect_number] @type = options[:type] end def to_xml builder = Nokogiri::XML::Builder.new do |xml| xml.root { xml.tipoBusca('H') xml.tipoSolicitacao(@type) xml.numeroPedido(@collect_number) } end builder.to_xml end end end end
Version data entries
15 entries across 15 versions & 1 rubygems