Module: OpConnect

Extended by:
Configurable
Defined in:
lib/op_connect.rb,
lib/op_connect/item.rb,
lib/op_connect/error.rb,
lib/op_connect/vault.rb,
lib/op_connect/client.rb,
lib/op_connect/object.rb,
lib/op_connect/default.rb,
lib/op_connect/version.rb,
lib/op_connect/item/url.rb,
lib/op_connect/response.rb,
lib/op_connect/item/file.rb,
lib/op_connect/connection.rb,
lib/op_connect/item/field.rb,
lib/op_connect/api_request.rb,
lib/op_connect/client/files.rb,
lib/op_connect/client/items.rb,
lib/op_connect/configurable.rb,
lib/op_connect/item/section.rb,
lib/op_connect/client/vaults.rb,
lib/op_connect/server_health.rb,
lib/op_connect/api_request/actor.rb,
lib/op_connect/api_request/resource.rb,
lib/op_connect/response/raise_error.rb,
lib/op_connect/item/generator_recipe.rb,
lib/op_connect/server_health/dependency.rb

Overview

Ruby toolkit for the 1Password Connect REST API.

Defined Under Namespace

Modules: Configurable, Connection, Default, Response Classes: APIRequest, BadRequest, Client, ClientError, Error, Forbidden, InternalServerError, Item, NotFound, Object, PayloadTooLarge, ServerError, ServerHealth, ServiceUnavailable, Unauthorized, Vault

Constant Summary collapse

VERSION =
"0.1.3"

Instance Attribute Summary

Attributes included from Configurable

#access_token, #adapter, #api_endpoint, #stubs, #user_agent

Class Method Summary collapse

Methods included from Configurable

configure, keys, reset!, same_options?

Class Method Details

.clientOpConnect::Client

API client based on configured options Configurable

Returns:



40
41
42
43
# File 'lib/op_connect.rb', line 40

def client
  return @client if defined?(@client) && @client.same_options?(options)
  @client = OpConnect::Client.new(options)
end