Module: NFTStorage

Defined in:
lib/nft_storage/version.rb,
lib/nft_storage.rb,
lib/nft_storage/api_error.rb,
lib/nft_storage/api_client.rb,
lib/nft_storage/models/nft.rb,
lib/nft_storage/models/pin.rb,
lib/nft_storage/models/deal.rb,
lib/nft_storage/models/links.rb,
lib/nft_storage/configuration.rb,
lib/nft_storage/models/links_file.rb,
lib/nft_storage/models/pin_status.rb,
lib/nft_storage/api/nft_storage_api.rb,
lib/nft_storage/models/get_response.rb,
lib/nft_storage/models/list_response.rb,
lib/nft_storage/models/error_response.rb,
lib/nft_storage/models/delete_response.rb,
lib/nft_storage/models/upload_response.rb,
lib/nft_storage/models/error_response_error.rb,
lib/nft_storage/models/forbidden_error_response.rb,
lib/nft_storage/models/unauthorized_error_response.rb,
lib/nft_storage/models/forbidden_error_response_error.rb,
lib/nft_storage/models/unauthorized_error_response_error.rb

Overview

#NFT Storage API

#No description provided (generated by Openapi Generator github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 1.0

Generated by: openapi-generator.tech OpenAPI Generator version: 5.1.1-SNAPSHOT

Defined Under Namespace

Classes: ApiClient, ApiError, Configuration, Deal, DeleteResponse, ErrorResponse, ErrorResponseError, ForbiddenErrorResponse, ForbiddenErrorResponseError, GetResponse, Links, LinksFile, ListResponse, NFT, NFTStorageAPI, Pin, PinStatus, UnauthorizedErrorResponse, UnauthorizedErrorResponseError, UploadResponse

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

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

If no block given, return the default Configuration object.



48
49
50
51
52
53
54
# File 'lib/nft_storage.rb', line 48

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