Class GH::Response
In: lib/gh/response.rb
Parent: Object

Public: Class wrapping low level Github responses.

Delegates safe methods to the parsed body (expected to be an Array or Hash).

Methods

==   dup   dup_ivars   new   respond_to?   to_ary   to_gh   to_hash   to_s  

Included Modules

GH::Case Enumerable

Attributes

body  [RW] 
data  [RW] 
headers  [RW] 
url  [RW] 

Public Class methods

Internal: Initializes a new instance.

headers - HTTP headers as a Hash body - HTTP body as a String

Public Instance methods

Public: …

Public: Duplicates the instance. Will also duplicate some instance variables to behave as expected.

Returns new Response instance.

Public: Returns true or false indicating whether it supports method.

Public: Implements to_ary conventions, please check respond_to?(:to_hash).

Public: …

Public: Implements to_hash conventions, please check respond_to?(:to_hash).

Public: Returns the response body as a String.

Protected Instance methods

[Validate]