Sha256: 1e1c6773f77b3b761d2fa63400df0ed1a52a6b4168f03ddbc281f0082de4f5bc
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
# frozen_string_literal: true require 'hcloud/version' require 'active_support/core_ext/object/to_query' require 'active_support/core_ext/hash/indifferent_access' module Hcloud autoload :Error, 'hcloud/errors' autoload :Client, 'hcloud/client' autoload :Future, 'hcloud/future' autoload :TyphoeusExt, 'hcloud/typhoeus_ext' autoload :AbstractResource, 'hcloud/abstract_resource' autoload :EntryLoader, 'hcloud/entry_loader' autoload :Server, 'hcloud/server' autoload :ServerResource, 'hcloud/server_resource' autoload :ServerType, 'hcloud/server_type' autoload :ServerTypeResource, 'hcloud/server_type_resource' autoload :FloatingIP, 'hcloud/floating_ip' autoload :FloatingIPResource, 'hcloud/floating_ip_resource' autoload :SSHKey, 'hcloud/ssh_key' autoload :SSHKeyResource, 'hcloud/ssh_key_resource' autoload :Datacenter, 'hcloud/datacenter' autoload :DatacenterResource, 'hcloud/datacenter_resource' autoload :Location, 'hcloud/location' autoload :LocationResource, 'hcloud/location_resource' autoload :Image, 'hcloud/image' autoload :ImageResource, 'hcloud/image_resource' autoload :Network, 'hcloud/network' autoload :NetworkResource, 'hcloud/network_resource' autoload :Firewall, 'hcloud/firewall' autoload :FirewallResource, 'hcloud/firewall_resource' autoload :Volume, 'hcloud/volume' autoload :VolumeResource, 'hcloud/volume_resource' autoload :Action, 'hcloud/action' autoload :ActionResource, 'hcloud/action_resource' autoload :Iso, 'hcloud/iso' autoload :IsoResource, 'hcloud/iso_resource' autoload :Pagination, 'hcloud/pagination' COLLECT_ARGS = proc do |method_name, bind| query = bind.receiver.method(method_name).parameters.inject({}) do |hash, (_type, name)| hash.merge(name => bind.local_variable_get(name)) end query.delete_if { |_, v| v.nil? } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hcloud-1.1.0 | lib/hcloud.rb |