Class: AppStoreDevApi::Request
- Inherits:
-
Object
- Object
- AppStoreDevApi::Request
- Defined in:
- lib/app_store_dev_api/request.rb,
lib/app_store_dev_api/request/body.rb,
lib/app_store_dev_api/request/builder/create.rb
Defined Under Namespace
Modules: Builder Classes: Body, UnsupportedHTTPMethod
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(**options) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(**options) ⇒ Request
Returns a new instance of Request.
13 14 15 16 |
# File 'lib/app_store_dev_api/request.rb', line 13 def initialize(**) @uri = .fetch(:uri) @options = end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 |
# File 'lib/app_store_dev_api/request.rb', line 18 def execute Net::HTTP.start(uri.host, uri.port, ) do |http| http.request(request) end end |