Sha256: 0331546bba0e42698b631cda8e47494c81f3241463632752448e67804712a595

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

# Ruby bindings
require "forwardable"

# Version
require "dock_health_api/version"

require "dock_health_api/crud/get"
require "dock_health_api/crud/create"
require "dock_health_api/crud/update"
require "dock_health_api/crud/put"
require "dock_health_api/crud/delete"
require "dock_health_api/crud/list"

require "dock_health_api/config"

module DockHealthApi
  autoload :Client, "dock_health_api/client"
  autoload :Error, "dock_health_api/error"
  autoload :Object, "dock_health_api/object"
  autoload :Resource, "dock_health_api/resource"

  autoload :User, "dock_health_api/resources/user"
  autoload :Task, "dock_health_api/resources/task"
  autoload :TaskList, "dock_health_api/resources/tasklist"
  autoload :Webhook, "dock_health_api/resources/webhook"
  autoload :Patient, "dock_health_api/resources/patient"
  autoload :Developer, "dock_health_api/resources/developer"
  autoload :Organization, "dock_health_api/resources/organization"
  autoload :CustomField, "dock_health_api/resources/customfield"

  @config = DockHealthApi::Config.new

  class << self
    attr_reader :config

    extend Forwardable

    def_delegators :@config, :api_key, :api_key=
    def_delegators :@config, :api_secret, :api_secret=
    def_delegators :@config, :api_base, :api_base=
    def_delegators :@config, :resource_url, :resource_url=
    def_delegators :@config, :token_url, :token_url=
    def_delegators :@config, :org_id, :org_id=
    def_delegators :@config, :user_id, :user_id=
    def_delegators :@config, :api, :api=
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dock_health_api-0.3.6 lib/dock_health_api.rb