Class: Skuby::Credit
Class Method Summary collapse
Class Method Details
.balance ⇒ Object
6 7 8 9 |
# File 'lib/skuby/credit.rb', line 6 def self.balance response = CGI.parse(post('', body: build_params, verify: false)) response["credit_left"].first.to_f if response["status"].first == "success" end |