Class: VpsbClient::Api::GetPlanIdRequest

Inherits:
GetItemIdRequest show all
Defined in:
lib/vpsb_client/api/get_item_id_request.rb

Instance Method Summary collapse

Methods inherited from GetItemIdRequest

item_id, #url_path

Methods inherited from GetRequest

#run

Methods inherited from Request

#accept, #post_params, #put_params

Constructor Details

#initialize(http_client, hoster_id, plan_name) ⇒ GetPlanIdRequest

Returns a new instance of GetPlanIdRequest.



23
24
25
26
# File 'lib/vpsb_client/api/get_item_id_request.rb', line 23

def initialize(http_client, hoster_id, plan_name)
  super(http_client, 'plans', plan_name)
  @hoster_id = hoster_id
end

Instance Method Details

#query_paramsObject



28
29
30
# File 'lib/vpsb_client/api/get_item_id_request.rb', line 28

def query_params
  { hoster_id: @hoster_id }
end