Sha256: 6ff368d43cb4b9568234a9a98611b14b1e79d943e76a4b594cf4ad23a218e885
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 Bytes
Contents
module PagarMe class Company < PagarMeObject def default_recipient PagarMe::Recipient.find default_recipient_by_env end protected def default_recipient_by_env if ENV['production'] default_recipient_id.live else default_recipient_id.test end end def self.default_recipient company.default_recipient end def self.company PagarMe::Request.get('/company').call end def self.temporary PagarMe::Request.post('/companies/temporary').call end end end
Version data entries
4 entries across 4 versions & 1 rubygems