Sha256: 37fc670cd4b266ad45cdd848a5da29309e9abb456abeaa4fece01abeed93103d
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
module FakeChargify module UrlParser def get_id_from_uri(uri) match = uri.path.match(/(\/\d.(xml|json)\z)/) if !match.nil? && match.size > 0 match = match[0].match(/\d/) return id = match[0].to_i if !match.nil? && match.size > 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fake_chargify-0.1.0 | lib/fake_chargify/url_parser.rb |