Sha256: e32fd0445d7ffbec20b6ae4d4910600a2a49240a7f4d3d81479baf4b5381c9aa
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
# frozen_string_literal: true require 'cloud_party/version' require 'cloud_party/context' require 'cloud_party/response' require 'cloud_party/responses' require 'cloud_party/exceptions' require 'cloud_party/nodes' require 'cloud_party/simple' require 'httparty' require 'json' require 'app_configuration' class Hash #take keys of hash and transform those to a symbols def self.transform_keys_to_symbols(value) return value if not value.is_a?(Hash) hash = value.inject({}){|memo,(k,v)| memo[k.to_sym] = Hash.transform_keys_to_symbols(v); memo} return hash end end class String def squish! strip! gsub!(/\s+/, ' ') self end def squish dup.squish! end end module CloudParty def self.simple_connect CloudParty::Simple.new.connect end def self.context_connect CloudParty::Context.new end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloud_party-0.1.1.pre.alpha.1 | lib/cloud_party.rb |
cloud_party-0.1.0.pre.pre.1 | lib/cloud_party.rb |