lib/shelly/app.rb in shelly-0.2.1 vs lib/shelly/app.rb in shelly-0.2.2

- old
+ new

@@ -192,16 +192,12 @@ def state attributes["state"] end - def trial? - !!attributes["trial"] - end - def credit - attributes["credit"] + attributes["organization"]["credit"].to_f end def self.inside_git_repository? system("git status > /dev/null 2>&1") end @@ -209,10 +205,10 @@ def to_s code_name end def edit_billing_url - "#{shelly.shellyapp_url}/organizations/#{attributes["organization_name"]}/edit" + "#{shelly.shellyapp_url}/organizations/#{organization}/edit" end def open Launchy.open("http://#{attributes["domain"]}") end