Class: Smartbill::Sdk::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/smartbill/sdk/response.rb

Overview

A simple HTTP response value object returned by adapters.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



10
11
12
# File 'lib/smartbill/sdk/response.rb', line 10

def body
  @body
end

#body Raw response body (String, possibly binary).(Rawresponsebody(String, possibly binary)) ⇒ Object (readonly)

A simple HTTP response value object returned by adapters.



10
# File 'lib/smartbill/sdk/response.rb', line 10

Response = Struct.new(:status, :body, :content_type, keyword_init: true)

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



10
11
12
# File 'lib/smartbill/sdk/response.rb', line 10

def content_type
  @content_type
end

#content_type Value of the +Content-Type+ header.(Valueofthe+Content-Type+header.) ⇒ Object (readonly)

A simple HTTP response value object returned by adapters.



10
# File 'lib/smartbill/sdk/response.rb', line 10

Response = Struct.new(:status, :body, :content_type, keyword_init: true)

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



10
11
12
# File 'lib/smartbill/sdk/response.rb', line 10

def status
  @status
end

#status HTTP status code (Integer).(HTTPstatuscode(Integer)) ⇒ Object (readonly)

A simple HTTP response value object returned by adapters.



10
# File 'lib/smartbill/sdk/response.rb', line 10

Response = Struct.new(:status, :body, :content_type, keyword_init: true)