Module: Patch

Defined in:
lib/patch_ruby/version.rb,
lib/patch_ruby.rb,
lib/patch_ruby/api_error.rb,
lib/patch_ruby/api_client.rb,
lib/patch_ruby/models/sdg.rb,
lib/patch_ruby/models/order.rb,
lib/patch_ruby/models/photo.rb,
lib/patch_ruby/configuration.rb,
lib/patch_ruby/api/orders_api.rb,
lib/patch_ruby/models/project.rb,
lib/patch_ruby/models/estimate.rb,
lib/patch_ruby/models/standard.rb,
lib/patch_ruby/api/projects_api.rb,
lib/patch_ruby/models/highlight.rb,
lib/patch_ruby/api/estimates_api.rb,
lib/patch_ruby/models/allocation.rb,
lib/patch_ruby/api/preferences_api.rb,
lib/patch_ruby/models/error_response.rb,
lib/patch_ruby/models/order_response.rb,
lib/patch_ruby/models/technology_type.rb,
lib/patch_ruby/models/project_response.rb,
lib/patch_ruby/api/technology_types_api.rb,
lib/patch_ruby/models/estimate_response.rb,
lib/patch_ruby/models/meta_index_object.rb,
lib/patch_ruby/models/order_list_response.rb,
lib/patch_ruby/models/create_order_request.rb,
lib/patch_ruby/models/project_list_response.rb,
lib/patch_ruby/models/estimate_list_response.rb,
lib/patch_ruby/models/parent_technology_type.rb,
lib/patch_ruby/models/create_success_response.rb,
lib/patch_ruby/models/create_mass_estimate_request.rb,
lib/patch_ruby/models/technology_type_list_response.rb,
lib/patch_ruby/models/create_flight_estimate_request.rb,
lib/patch_ruby/models/create_bitcoin_estimate_request.rb,
lib/patch_ruby/models/create_vehicle_estimate_request.rb,
lib/patch_ruby/models/create_ethereum_estimate_request.rb,
lib/patch_ruby/models/create_shipping_estimate_request.rb

Overview

#Patch API V1

#The core API used to integrate with Patch’s service

The version of the OpenAPI document: v1 Contact: [email protected] Generated by: openapi-generator.tech OpenAPI Generator version: 5.2.1

Defined Under Namespace

Classes: Allocation, ApiClient, ApiError, Configuration, CreateBitcoinEstimateRequest, CreateEthereumEstimateRequest, CreateFlightEstimateRequest, CreateMassEstimateRequest, CreateOrderRequest, CreateShippingEstimateRequest, CreateSuccessResponse, CreateVehicleEstimateRequest, ErrorResponse, Estimate, EstimateListResponse, EstimateResponse, EstimatesApi, Highlight, MetaIndexObject, Order, OrderListResponse, OrderResponse, OrdersApi, ParentTechnologyType, Photo, PreferencesApi, Project, ProjectListResponse, ProjectResponse, ProjectsApi, Sdg, Standard, TechnologyType, TechnologyTypeListResponse, TechnologyTypesApi

Constant Summary collapse

VERSION =
'1.16.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

Patch.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



62
63
64
65
66
67
68
# File 'lib/patch_ruby.rb', line 62

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end