Class: Ubicloud::Adapter::Rack
- Inherits:
-
Ubicloud::Adapter
- Object
- Ubicloud::Adapter
- Ubicloud::Adapter::Rack
- Defined in:
- lib/ubicloud/adapter/rack.rb
Overview
Ubicloud::Adapter::Rack is designed for internal use of the Ruby SDK by Ubicloud itself. It is used inside Ubicloud to issue internal requests when handling CLI commands. A new instance of Ubicloud::Adapter::Rack is created for each CLI command.
Instance Method Summary collapse
-
#initialize(app:, env:, project_id:) ⇒ Rack
constructor
Accept the rack application (Clover), request env of the CLI request, and related project id.
Methods inherited from Ubicloud::Adapter
adapter_class, #delete, #get, #patch, #post
Constructor Details
#initialize(app:, env:, project_id:) ⇒ Rack
Accept the rack application (Clover), request env of the CLI request, and related project id.
12 13 14 15 16 |
# File 'lib/ubicloud/adapter/rack.rb', line 12 def initialize(app:, env:, project_id:) @app = app @env = env @project_id = project_id end |