Module: MetatronClient

Defined in:
lib/metatron_ruby_client/version.rb,
lib/metatron_ruby_client.rb,
lib/metatron_ruby_client/api_error.rb,
lib/metatron_ruby_client/api_client.rb,
lib/metatron_ruby_client/models/item.rb,
lib/metatron_ruby_client/models/meta.rb,
lib/metatron_ruby_client/models/work.rb,
lib/metatron_ruby_client/models/asset.rb,
lib/metatron_ruby_client/models/error.rb,
lib/metatron_ruby_client/models/links.rb,
lib/metatron_ruby_client/configuration.rb,
lib/metatron_ruby_client/models/errors.rb,
lib/metatron_ruby_client/api/default_api.rb,
lib/metatron_ruby_client/models/resource.rb,
lib/metatron_ruby_client/models/item_data.rb,
lib/metatron_ruby_client/models/work_data.rb,
lib/metatron_ruby_client/models/asset_data.rb,
lib/metatron_ruby_client/models/asset_meta.rb,
lib/metatron_ruby_client/models/manifestation.rb,
lib/metatron_ruby_client/models/resource_data.rb,
lib/metatron_ruby_client/models/resource_link.rb,
lib/metatron_ruby_client/models/item_result_set.rb,
lib/metatron_ruby_client/models/result_set_meta.rb,
lib/metatron_ruby_client/models/work_attributes.rb,
lib/metatron_ruby_client/models/work_result_set.rb,
lib/metatron_ruby_client/models/asset_attributes.rb,
lib/metatron_ruby_client/models/asset_result_set.rb,
lib/metatron_ruby_client/models/manifestation_data.rb,
lib/metatron_ruby_client/models/work_relationships.rb,
lib/metatron_ruby_client/models/asset_result_set_meta.rb,
lib/metatron_ruby_client/models/one_to_one_relationship.rb,
lib/metatron_ruby_client/models/manifestation_attributes.rb,
lib/metatron_ruby_client/models/manifestation_result_set.rb,
lib/metatron_ruby_client/models/one_to_many_relationship.rb,
lib/metatron_ruby_client/models/manifestation_relationships.rb

Overview

Metatron Server

A primitive modelling bibliographic metadata

OpenAPI spec version: 2.0.0

Generated by: github.com/swagger-api/swagger-codegen.git

Defined Under Namespace

Classes: ApiClient, ApiError, Asset, AssetAttributes, AssetData, AssetMeta, AssetResultSet, AssetResultSetMeta, Configuration, DefaultApi, Error, Errors, Item, ItemData, ItemResultSet, Links, Manifestation, ManifestationAttributes, ManifestationData, ManifestationRelationships, ManifestationResultSet, Meta, OneToManyRelationship, OneToOneRelationship, Resource, ResourceData, ResourceLink, ResultSetMeta, Work, WorkAttributes, WorkData, WorkRelationships, WorkResultSet

Constant Summary collapse

VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

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

If no block given, return the default Configuration object.



57
58
59
60
61
62
63
# File 'lib/metatron_ruby_client.rb', line 57

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