Class GH::Remote
In: lib/gh/remote.rb
Parent: Wrapper

Public: This class deals with HTTP requests to Github. It is the base Wrapper you always want to use. Note that it is usually used implicitely by other wrapper classes if not specified.

Methods

delete   fetch_resource   full_url   generate_response   head   http   in_parallel   inspect   load   patch   path_for   post   put   request   reset   setup  

Attributes

api_host  [R] 
connection  [R] 
headers  [R] 
prefix  [R] 

Public Instance methods

Internal: …

Public: …

Public: …

Public: …

Public: …

Public: …

Public: …

Public: …

Public: …

Public: Generates a new Rempte instance.

api_host - HTTP host to send requests to, has to include schema (https or http) options - Hash with configuration options:

           :token    - OAuth token to use (optional).
           :username - Github user used for login (optional).
           :password - Github password used for login (optional).
           :origin   - Value of the origin request header (optional).
           :headers  - HTTP headers to be send on every request (optional).
           :adapter  - HTTP library to use for making requests (optional, default: :net_http)

It is highly recommended to set origin, but not to set headers. If you set the username, you should also set the password.

[Validate]