lib/shelly/app.rb in shelly-0.4.29 vs lib/shelly/app.rb in shelly-0.4.30

- old
+ new

@@ -12,11 +12,11 @@ DATABASE_CHOICES = DATABASE_KINDS + %w(none) SERVER_SIZES = %w(small large) attr_accessor :code_name, :databases, :ruby_version, :environment, :git_url, :domains, :web_server_ip, :size, :thin, - :organization_name, :zone_name + :organization_name, :zone_name, :usage, :traffic def initialize(code_name = nil) self.code_name = code_name end @@ -238,10 +238,14 @@ def statistics @stats ||= shelly.statistics(code_name) end def usage - @usage ||= shelly.usage(code_name) + attributes["billing"]["current_month_costs"]["usage"] + end + + def traffic + attributes["billing"]["current_month_costs"]["traffic"] end def system_user attributes["system_user"] end