Module: UEncode::Transfer
- Includes:
- AttrSetting
- Included in:
- Destination, OverlayUrl, Source
- Defined in:
- lib/uencode/elements.rb
Constant Summary collapse
- ATTRIBUTES =
[:url, :authentication_type, :timeout, :public_read]
Instance Method Summary collapse
Methods included from AttrSetting
included, #initialize, #set_attributes
Instance Method Details
#to_xml ⇒ Object
59 60 61 62 63 |
# File 'lib/uencode/elements.rb', line 59 def to_xml %Q{ <#{root_name}#{@authentication_type ? ' authentication_type="' + @authentication_type + '"' : ""}#{@timeout ? ' timeout="'+ @timeout.to_s + '"' : ""}#{@public_read ? ' public_read="' + @public_read.to_s + '"' : ""}>#{@url}</#{root_name}> } end |