Sha256: 55870bebf831ce645fbc8b4e10808b333f0f06cfa166ce89a0dc1f761a46349c
Contents?: true
Size: 486 Bytes
Versions: 7
Compression:
Stored size: 486 Bytes
Contents
require 'builder' module Trebbianno class Request def initialize(client) @client = client end def construct_xml(type) @client.type = type xml = ::Builder::XmlMarkup.new :indent => 2 xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" xml.tag! type do yield(xml) if block_given? end xml.target! end def build_user(xml) xml.user @client.username xml.password @client.password end end end
Version data entries
7 entries across 7 versions & 1 rubygems