Module: Zedkit
- Defined in:
- lib/zedkit/cli/runner.rb,
lib/zedkit.rb,
lib/zedkit/cli/projects.rb,
lib/zedkit/client/client.rb,
lib/zedkit/cli/exceptions.rb,
lib/zedkit/resources/users.rb,
lib/zedkit/client/exceptions.rb,
lib/zedkit/instances/project.rb,
lib/zedkit/instances/instance.rb,
lib/zedkit/resources/projects.rb,
lib/zedkit/client/configuration.rb
Overview
Copyright © Zedkit.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Defined Under Namespace
Modules: CLI, Client Classes: Configuration, Instance, Project, Projects, Users, ZedkitError
Class Attribute Summary collapse
-
.configuration ⇒ Object
Configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .countries(user_key) ⇒ Object
- .entities(user_key) ⇒ Object
- .regions(user_key, zks = {}) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
60 61 62 |
# File 'lib/zedkit.rb', line 60 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
61 62 63 64 |
# File 'lib/zedkit.rb', line 61 def configure self.configuration ||= Configuration.new yield(configuration) end |
.countries(user_key) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/zedkit.rb', line 26 def countries(user_key) rs = Zedkit::Client.get('entities/countries', user_key) if rs && block_given? rs.is_a?(Array) ? rs.each {|i| yield(i) } : yield(rs) end rs end |