Module: Cloudcost

Defined in:
lib/cloudcost/cli.rb,
lib/cloudcost/error.rb,
lib/cloudcost/server.rb,
lib/cloudcost/pricing.rb,
lib/cloudcost/version.rb,
lib/cloudcost/api_token.rb,
lib/cloudcost/server_list.rb,
lib/cloudcost/api_connection.rb

Defined Under Namespace

Modules: Pricing Classes: ApiConnection, ApiToken, CLI, Error, PricingError, ProfileError, Server, ServerList, TokenError

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.tags_to_s(tag_hash = []) ⇒ Object



6
7
8
# File 'lib/cloudcost/server.rb', line 6

def self.tags_to_s(tag_hash = [])
  tag_hash.map { |k, v| "#{k}=#{v}" }.join(" ")
end