Sha256: b039a021482de0a99e4f00fa1af637730c4ec1bd937235bd781c877ec48de133

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

require "json"
require "api_client_base"
require "dry-validation"

require "btfy_client/version"
require "btfy_client/client"

require "btfy_client/models/link"
require "btfy_client/requests/base_request"
require "btfy_client/requests/create_link_request"
require "btfy_client/responses/create_link_response"

BTFY_CLIENT_DIR = Pathname.new(File.dirname(__FILE__)).
  join("btfy_client")

%w(models requests responses).each do |dir|
  Dir[BTFY_CLIENT_DIR.join(dir, "*.rb")].each { |f| require f }
end

module BtfyClient

  include APIClientBase::Base.module

  with_configuration do
    has :host,      classes: String
    has :api_token, classes: String
  end

  CreateLinkRequestSchema = Dry::Schema.Params do
    required(:destination_url).value(:string)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
btfy_client-0.5.0 lib/btfy_client.rb