Class: AppStoreDevApi::Request

Inherits:
Object
  • Object
show all
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

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(**options)
  @uri = options.fetch(:uri)
  @options = options
end

Instance Method Details

#executeObject



18
19
20
21
22
# File 'lib/app_store_dev_api/request.rb', line 18

def execute
  Net::HTTP.start(uri.host, uri.port, net_http_options) do |http|
    http.request(request)
  end
end