Sha256: 9a0182d0e01f1b267aafa60fbcff272a8df401881f451ee5e74c96cfdc7e5d35
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 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 PagarMe.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pagarme-2.2.1 | lib/pagarme/resources/company.rb |
pagarme-2.2.0 | lib/pagarme/resources/company.rb |
pagarme-2.1.4 | lib/pagarme/resources/company.rb |