Method: Pcli::ApiRequest#initialize
- Defined in:
- lib/pcli/api_request.rb
#initialize(path) ⇒ ApiRequest
Returns a new instance of ApiRequest.
5 6 7 8 9 10 |
# File 'lib/pcli/api_request.rb', line 5 def initialize(path) @path = path @method = 'get' @params = {} @headers = { 'Content-Type': 'application/json' } end |