Class: ShopifyApiBruv::Clients::Rest::HttpResponse

Inherits:
HttpResponse
  • Object
show all
Defined in:
lib/shopify_api_bruv/clients/rest/http_response.rb

Instance Attribute Summary collapse

Attributes inherited from HttpResponse

#body, #code, #headers

Instance Method Summary collapse

Constructor Details

#initialize(code:, headers:, body:) ⇒ HttpResponse

Returns a new instance of HttpResponse.



9
10
11
12
13
# File 'lib/shopify_api_bruv/clients/rest/http_response.rb', line 9

def initialize(code:, headers:, body:)
  super(code:, headers:, body:)

  @page_info = parse_page_info
end

Instance Attribute Details

#page_infoObject (readonly)

Returns the value of attribute page_info.



7
8
9
# File 'lib/shopify_api_bruv/clients/rest/http_response.rb', line 7

def page_info
  @page_info
end