module QcloudRuby
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/qcloud_ruby.rb, line 6 def self.configure @configuration ||= ::QcloudRuby::Configuration.new yield @configuration end
get(service_type: nil, **params)
click to toggle source
# File lib/qcloud_ruby.rb, line 11 def self.get(service_type: nil, **params) client = ::QcloudRuby::Client.new do |c| c.service_type = service_type end client.request(method: 'GET', **params) end
post(service_type: nil, **params)
click to toggle source
# File lib/qcloud_ruby.rb, line 19 def self.post(service_type: nil, **params) client = ::QcloudRuby::Client.new do |c| c.service_type = service_type end client.request(method: 'POST', **params) end