Class: RestBuilder::Payload::StreamedString

Inherits:
Streamed show all
Defined in:
lib/rest-builder/payload.rb

Direct Known Subclasses

UrlEncoded

Instance Attribute Summary

Attributes inherited from RestBuilder::Payload

#io

Instance Method Summary collapse

Methods inherited from Streamed

#headers

Methods inherited from RestBuilder::Payload

#close, #closed?, generate, generate_with_headers, #headers, #read, #size

Constructor Details

#initialize(payload) ⇒ StreamedString

Returns a new instance of StreamedString.



78
79
80
# File 'lib/rest-builder/payload.rb', line 78

def initialize payload
  super(StringIO.new(payload))
end