class Vermillion::Helper::Network

Attributes

config[RW]

Access the configuration object instance externally

Public Instance Methods

get(url, key) click to toggle source

Perform a GET request to a specified URL Params:

url

The URL you want to hit

key

The authentication key to pass via headers to the URL

# File lib/client/helper/network.rb, line 11
def get(url, key)
  _request(url, :GET, key)
end
post(url, key) click to toggle source

Perform a POST request to a specified URL Params:

url

The URL you want to hit

key

The authentication key to pass via headers to the URL

# File lib/client/helper/network.rb, line 19
def post(url, key)
  _request(url, :POST, key)
end