Sha256: 72d762c2f2a260611c663c48613c1717b0efa1fec408c196f3712498da7d4553
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
$: << File.expand_path('../../lib', __FILE__) require 'cobregratis' require 'pp' Cobregratis::Base.site = 'https://app.cobregratis.com.br' Cobregratis::Base.user = 'token-do-usuario' Cobregratis::Base.password = 'X' @bank_billet = Cobregratis::BankBillet.create({ :amount => 230.50, :expire_at => '2015-07-22', :name => 'Rafael Lima', }) @bank_billets = Cobregratis::BankBillet.find(:all) @bank_billets.each do |bank_billet| puts "Nosso NĂºmero: #{bank_billet.our_number}\n"; puts "Vencimento: #{bank_billet.expire_at}\n"; puts "Valor: #{bank_billet.amount}\n"; puts "Sacado: #{bank_billet.name}\n"; puts "URL: #{bank_billet.external_link}\n"; puts "=================================\n"; end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cobregratis-0.4.1 | examples/example.rb |