Class: Jpzip::Http::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/jpzip/http.rb

Overview

Result wraps an HTTP response: body (String or nil) and status (Integer).

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



15
16
17
# File 'lib/jpzip/http.rb', line 15

def body
  @body
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



15
16
17
# File 'lib/jpzip/http.rb', line 15

def status
  @status
end