module Yao

Constants

VERSION

Public Class Methods

config(&blk) click to toggle source

@param blk [Proc] @return [Yao::Config]

# File lib/yao/config.rb, line 87
def self.config(&blk)
  @__config ||= Config.new
  if blk
    @__config.delay_hook = true
    @__config.instance_eval(&blk)
    @__config.delay_hook = false
  end
  @__config
end
configure(&blk) click to toggle source

@param blk [Proc] @return [Yao::Config]

# File lib/yao/config.rb, line 99
def self.configure(&blk)
  config(&blk)
end
const_missing(name) click to toggle source

@param name [String] @return [object]

Calls superclass method
# File lib/yao/resources.rb, line 50
def self.const_missing(name)
  new_klass = Yao::Resources.const_get(name)
  Yao.const_set(name, new_klass)
rescue NameError
  super
end
current_tenant_id(id=nil) click to toggle source
# File lib/yao/token.rb, line 66
def self.current_tenant_id(id=nil)
  if id
    @__tenant_id = id
  end
  @__tenant_id
end
default_client() click to toggle source

@return [Yao::Client::ClientSet]

# File lib/yao/client.rb, line 151
def self.default_client
  Yao::Client.default_client
end