Class: VpsbClient::Api::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/vpsb_client/api/request.rb

Direct Known Subclasses

GetRequest, PostRequest, PutRequest

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ Request

Returns a new instance of Request.



4
5
6
# File 'lib/vpsb_client/api/request.rb', line 4

def initialize(http_client)
  @http_client = http_client
end

Instance Method Details

#acceptObject



20
21
22
# File 'lib/vpsb_client/api/request.rb', line 20

def accept
  'application/json'
end

#post_paramsObject



12
13
14
# File 'lib/vpsb_client/api/request.rb', line 12

def post_params
  {}
end

#put_paramsObject



16
17
18
# File 'lib/vpsb_client/api/request.rb', line 16

def put_params
  {}
end

#query_paramsObject



8
9
10
# File 'lib/vpsb_client/api/request.rb', line 8

def query_params
  {}
end