Class: BooticClient::ResponseHandlers::IO

Inherits:
Struct
  • Object
show all
Defined in:
lib/bootic_client/response_handlers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_nameObject

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



39
40
41
# File 'lib/bootic_client/response_handlers.rb', line 39

def file_name
  @file_name
end

#ioObject

Returns the value of attribute io

Returns:

  • (Object)

    the current value of io



39
40
41
# File 'lib/bootic_client/response_handlers.rb', line 39

def io
  @io
end

#mime_typeObject

Returns the value of attribute mime_type

Returns:

  • (Object)

    the current value of mime_type



39
40
41
# File 'lib/bootic_client/response_handlers.rb', line 39

def mime_type
  @mime_type
end

Instance Method Details

#read(length = nil, outbuff = nil) ⇒ Object



40
41
42
# File 'lib/bootic_client/response_handlers.rb', line 40

def read(length = nil, outbuff = nil)
  io.read(length, outbuff)
end