Skip to content

Instantly share code, notes, and snippets.

@bcackerman
bcackerman / stripe_mrr.rb
Last active August 29, 2015 14:09 — forked from siong1987/mrr.rb
Stripe Monthly Recurring Revenue (MRR) Calculator
require 'stripe'
require 'ostruct'
# modified & fixed for more subscription based Stripe account from: https://gist.github.com/jacobpatton/a68d228bf2414852d862
#
# puts Stripe::Mrr.new(api_key: 'api_key').report
#
module Stripe
class Mrr
attr_reader :api_key