Module: Yao
- Extended by:
- Mode
- Defined in:
- lib/yao.rb,
lib/yao/auth.rb,
lib/yao/mode.rb,
lib/yao/error.rb,
lib/yao/token.rb,
lib/yao/client.rb,
lib/yao/config.rb,
lib/yao/tokenv3.rb,
lib/yao/version.rb,
lib/yao/resources.rb,
lib/yao/resources/port_associationable.rb,
lib/yao/resources/network_associationable.rb,
lib/yao/resources/project_associationable.rb
Defined Under Namespace
Modules: Auth, Client, Mode, Plugins, Resources
Classes: BadMediaType, BadMethod, BadRequest, BuildInProgress, ComputeFault, Config, Conflict, Forbidden, InvalidRequest, ItemNotFound, NetworkNotFound, NotFound, OverLimit, ReadOnlyViolationError, ServerCapacityUnavailable, ServerError, ServiceUnavailable, Token, TokenV3, TooManyItemFonud, Unauthorized, UnprocessableEntity
Constant Summary
collapse
- VERSION =
"0.21.0"
Class Method Summary
collapse
Methods included from Mode
read_only, read_only!
Class Method Details
87
88
89
90
91
92
93
94
95
|
# 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
|
99
100
101
|
# File 'lib/yao/config.rb', line 99
def self.configure(&blk)
config(&blk)
end
|
.const_missing(name) ⇒ object
50
51
52
53
54
55
|
# 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) ⇒ Object
66
67
68
69
70
71
|
# File 'lib/yao/token.rb', line 66
def self.current_tenant_id(id=nil)
if id
@__tenant_id = id
end
@__tenant_id
end
|