lib/geo_certs/reseller.rb in geocerts-0.0.20 vs lib/geo_certs/reseller.rb in geocerts-0.0.21

- old
+ new

@@ -2,9 +2,16 @@ module GeoCerts class Reseller < ApiObject + ## + # Returns a Float of the reseller's available balance. This balance is + # for the user whose credentials are currently in use. + # + # >> GeoCerts::Reseller.balance + # => 5495.23 + # def self.balance call_api { GeoCerts.api.balance }[:balance].to_f end end