class Gratitude::Statistics

Public Instance Methods

nach() click to toggle source
# File lib/gratitude/statistics.rb, line 11
def nach
  Integer(response_body.fetch("nach"))
end
number_of_ach_credits()
Alias for: nach
number_of_achs()
Alias for: nach
pcc() click to toggle source
# File lib/gratitude/statistics.rb, line 17
def pcc
  response_body.fetch("pcc").strip
end
percentage_of_users_with_credit_cards()
Alias for: pcc

Private Instance Methods

response() click to toggle source
# File lib/gratitude/statistics.rb, line 59
def response
  @response ||= faraday.get("/about/stats.json")
end
response_body() click to toggle source
# File lib/gratitude/statistics.rb, line 63
def response_body
  @response_body ||= response.body
end