Class: Qiita::Commands::Request

Inherits:
Base
  • Object
show all
Defined in:
lib/qiita/commands/request.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Qiita::Commands::Base

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/qiita/commands/request.rb', line 4

def call
  response = client.send(
    @arguments.method_name,
    *@arguments.arguments,
    @arguments.params,
    @arguments.headers,
  )
  print ResponseRenderer.new(
    response,
    color: @arguments.color,
    show_body: @arguments.show_body,
    show_header: @arguments.show_header,
  )
end