Skip to content

Instantly share code, notes, and snippets.

@sssionggg
sssionggg / mrr.rb
Created October 24, 2014 18:31
Stripe MRR Calculation
require 'stripe'
require 'ostruct'
# modified from: https://gist.github.com/jacobpatton/a68d228bf2414852d862
#
# puts Stripe::Mrr.new(api_key: 'api_key').mrr
#
module Stripe
class Mrr
attr_reader :api_key