Sha256: 062aa4a20494b25b5d8f1abceaf03e71ba648ffe233b86ce01e1036889605ad1
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
module Falconz module REST # HTTP 1.1 GET request method to make on the API endpoint. # # This is a module that is used in pretty much all the API # modules in order to talk to the API endpoint. module GET def get_request(path) response = HTTParty.get(url + path, headers: header) return response if response.success? raise RuntimeError, response end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
falconz-1.1.1 | lib/falconz/rest/get.rb |
falconz-1.1.0 | lib/falconz/rest/get.rb |
falconz-1.0.2 | lib/falconz/rest/get.rb |